Skip to content

Latest commit

 

History

History
10 lines (9 loc) · 163 Bytes

functionalprogramming.md

File metadata and controls

10 lines (9 loc) · 163 Bytes

#Recursive datatypes: SML: datatype nat = Zero | Succ of nat

#Pattern matching SML: fun iszero(n : nat) : bool = case n of Zero => true | Succ(m) => false