
21 May
2012
21 May
'12
8:49 p.m.
Ertugrul Söylemez
We have access to the two list constructors (:) and [] directly and they are very convenient,
So Ertugrul, as an experienced Haskeller which of these do you put in your code for a singleton list (whether appearing in a pattern or as an expression): [x] (x: []) Or perhaps you mix them, depending on whether you want to be more suggestive of an empty list [] or an unknown-length list (x: xs)? [.. snippety-snip] AntC