doc-src/Tutorial/Recdef/last
author wenzelm
Tue, 12 Sep 2000 17:34:41 +0200
changeset 9935 a87965201c34
parent 6100 40d66bc3e83f
permissions -rw-r--r--
tuned;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6100
40d66bc3e83f *** empty log message ***
nipkow
parents:
diff changeset
     1
consts last :: 'a list => 'a
40d66bc3e83f *** empty log message ***
nipkow
parents:
diff changeset
     2
recdef last "measure (%xs. length xs)"
40d66bc3e83f *** empty log message ***
nipkow
parents:
diff changeset
     3
  "last [x]      = x"
40d66bc3e83f *** empty log message ***
nipkow
parents:
diff changeset
     4
  "last (x#y#zs) = last (y#zs)"