Input and output codes now looks similar to Haskell (or Curry?)
[darcs-mirror-sem_syn.git] / example / init.txt
1 init []          = []
2 init [a]         = []
3 init (a:b:x)     = a:initWork b x
4 initWork a []    = []
5 initWork a (b:x) = a:initWork b x