News for hackers. Stuff that matters.
Re:CIS 194: Introduction to Haskell (Spring 2013) by dschiptsov on Monday July 29, 2013 @07:04AM (#6120275)
But these are solutions for some Array of unknown size or some abstract collection - why to call it a List? For a List the notion of the-empty-list is essential.
Re:CIS 194: Introduction to Haskell (Spring 2013) by Peaker on Monday July 29, 2013 @06:27PM (#6124279)
Not for the NonEmptyList...

Is your problem mainly what you call this notion?

Re:CIS 194: Introduction to Haskell (Spring 2013) by dschiptsov on Tuesday July 30, 2013 @03:49AM (#6125789)
I'm an old-school perfectionist, sorry.)

http://karma-engineering.com/lab/wiki/Tutorial10

Re:CIS 194: Introduction to Haskell (Spring 2013) by Peaker on Tuesday July 30, 2013 @07:26PM (#6130818)
If you have a structure whose only difference from a list is that it is guaranteed to have at least one element, why not call it a NonEmptyList?