Re: [Haskell] Dynamic binding

2005-06-23 Thread Pal-Kristian Engstad
On Wednesday 22 June 2005 06:38 pm, Andrew Ward wrote: % This general pattern of dynamic binding I use over and over again. Could % you give me some example code of this type of thing handled in Haskell's % way? Assuming that the number of classes deriving from shape might get % quite large. What

Re: avoiding cost of (++)

2003-01-16 Thread Pal-Kristian Engstad
On Thursday 16 January 2003 08:10 am, Hal Daume III wrote: I have a function which behaves like map, except instead of applying the given function to, say, the element at position 5, it applies it to the entire list *without* the element at position 5. An implementation looks like: