Types as Functions (and Integration thereof)

Uncategorized 11 April 2007 | 0 Comments

After reading Differention of Datastructures, I think I finally understand what is meant by “types as functions”, and immediately I can see one direction in which to go from what is presented there. If we take integration to be the logical inverse of differentiation (which is defined in the article as ‘removal of an element [...]

Tagged in , , ,

Return serve: ‘compare’ in Haskell

Uncategorized 3 April 2007 | 1 Comment

There you go: comp [] _ = False comp _ [] = True comp (_s) (_:ys) = comp xs ys

Tagged in ,

Functional programming, APL and Unix pipes

Uncategorized 4 March 2007 | 5 Comments

I’ve noticed that when reading rather deeply-nested functional code in Haskell, the process taking place in reading the code seems to resemble trying to decipher APL more than anything else. This seems to be because functions which operate over lists are easily concatenated (possibly using the $ operator), because they operate on lists in their [...]

Tagged in , , , , ,