Why are strings linked lists?

Sebastian Sylvan sylvan at dtek.chalmers.se
Wed Dec 10 15:07:17 EST 2003



Jerzy Karczmarczuk wrote:

> Robert Will wrote:
> 
>> Why is 'last' so much slower than 'head'?  Why is 'head' not called
>> 'first'?  Why does 'but_last' (aka init) copy the list, but 'but_first'
>> (aka tail) does not?
> 
> 
> Are those rhetoric questions, asked just to inspire some discussion, or
> you *really* don't know why?
> 

Giving the (shamelessly plugged =)) project he's working on I'd guess he 
knows the answer =)


/Sebastian Sylvan


More information about the Haskell mailing list