
8 Dec
2005
8 Dec
'05
9:03 a.m.
I have made a simple Split function, here is how it works : str = "k1=v1|k2=v2|k3=v3"
map (sSplit '=') (sSplit '|' str) [["k1","v1"],["k2","v2"],["k3","v3"]]
Now what I want to do is to return listOfPairs (instead listOflists) so that I can give this as parameter to Data.Map.fromList and build hash-like structure. What would be the easiest way ? PS. Can anyone point me to a source/link where I can see more examples of using Hash-like structures ?