RFC: general sequences

Ross Paterson ross at soi.city.ac.uk
Mon May 23 11:47:37 EDT 2005


On Mon, May 23, 2005 at 01:38:59PM +0200, Henning Thielemann wrote:
>  It would be great if we had a class for finite sequences with instances 
> Data.List, Data.Array, Data.Sequence. Maybe the new identifiers (<|), (|>) 
> and so on should be names of methods of a such a class instead of separate 
> functions.

What would that buy us?  I can't think of many useful functions that
would use that interface, what with (<|) lazy for lists and strict for the
other two, and (|>) cheap for sequences and expensive for the other two.


More information about the Libraries mailing list