Next Atypical Types 54

Type Inference

        map(f, []) = []
        map(f, h:t) = f(h) : map(f, t)

"f has some type, say p, and [] has some list type, say [a]."

Next Copyright © 1999,2008 Mark Dominus