
13 Aug
2006
13 Aug
'06
2:36 p.m.
Is there somethinig corresponding to Num concering lists? I mean there is + - /.. defined. + - are not type specific (Int, Double) neither is : [1,2] notation to Elements.. But what about different implementatins of lists? (linked lists? hash lists? array with index? In other words: why not overload (:) ? Then it would be possible to use "blah" for fast packed strings, too Then you could also implement implementations for C arrays and access them. (Sure you can do it anyway but not using syntactic sugar) One part of the answer is patterns? f 'a' = .. f _ = .. Marc