Right package:basic-prelude

Extracts from a list of Either all the Right elements. All the Right elements are extracted in order.

Examples

Basic usage:
>>> let list = [ Left "foo", Right 3, Left "bar", Right 7, Left "baz" ]

>>> rights list
[3,7]