Computer Science Canada Bits o' Scheme |
Author: | wtd [ Fri Dec 23, 2005 1:29 am ] | ||||||||||||||||||||||||||||||||||||||||
Post subject: | Bits o' Scheme | ||||||||||||||||||||||||||||||||||||||||
A few quick bits of syntax With comparisons to O'Caml. if ... else ...
O'Caml:
if ... elsif ... else ...
O'Caml:
list literals
O'Caml:
list construction
O'Caml:
list concatenation
O'Caml:
retrieving the first element from a list
O'Caml:
retrieving everything else from a list
O'Caml:
defining a function
O'Caml:
defining a function with arguments
O'Caml:
|