S. Alexander Jacobson writes: > The correct definitions would be: > > take -2 -- drops the last 2 elements from the list > (takes everything except the last 2 elements) > drop -2 -- grabs the last 2 elements from the list > (drops everything except the last 2 elements) .... > These are also sane definitions.. IMHO, that would be the _insane_ definitions :-) Firstly, nothing suggests to me that rationale of such behaviour. Secondly, it would mean loosing an important set of laws: drop n . drop m === drop (n + m) take n . take m === take (n + m) (which, I note in passing, is broken also by suggestion A) Regards, Tommy
- fixing typos in Haskell-98 S.D.Mechveliani
- Re: fixing typos in Haskell-98 Jon Fairbairn
- Re: fixing typos in Haskell-98 S. Alexander Jacobson
- Re: fixing typos in Haskell-98 Bjorn Lisper
- RE: fixing typos in Haskell-98 Brian Boutel
- RE: fixing typos in Haskell-98 S. Alexander Jacobson
- Re: drop & take [was: fixing ty... Tommy Thorn
- Re: drop & take [was: fixin... S. Alexander Jacobson
- Re: drop & take [was: ... Jan Skibinski
- Re: fixing typos in Haskell-98 Joe Fasel
- Re: fixing typos in Haskell-98 George Russell
- Re: fixing typos in Haskell-98 Craig Dickson
- Re: fixing typos in Haskell-98 Craig Dickson
- Re: fixing typos in Haskell-98 Marcin 'Qrczak' Kowalczyk
- Re: fixing typos in Haskell-98 Fergus Henderson