
12 Jul
2006
12 Jul
'06
10:54 a.m.
Christian Maeder
The other versions (not ignoring a final delimiter and deleting all empty lists) are desirable, too. Are there any suggestions for canonical names? The implementations could be hidden (and more efficient) then (by avoiding to traverse a list twice).
Surely list deforestation should take care of the efficiency question?
splitFields 'a' "baaba" -> ["b", "", "b", ""] splitLines 'a' "baaba" -> ["b", "", "b"] splitWords 'a' "baaba" -> ["b", "b"]
Did you mean this? splitFields 'a' "baaba" -> ["b", "", "", "b", ""] splitLines 'a' "baaba" -> ["b", "", "", "b"] splitWords 'a' "baaba" -> ["b", "b"] Regards, Malcolm