Name: Anonymous 2007-10-03 23:44
Hi /prog/, i'm doing a basic programming course at uni and the lecturer has set a challenge to write the id Haskell prelude function recursively:
id :: a -> a
id x = x
I can't think of a way to do this which is meaningful, any ideas (this isn't marked or anything so i'm not in any way cheating).
id :: a -> a
id x = x
I can't think of a way to do this which is meaningful, any ideas (this isn't marked or anything so i'm not in any way cheating).