doc-src/Tutorial/Recdef/last
author paulson
Fri, 21 Jan 2000 10:45:40 +0100
changeset 8138 1e4cb069b19d
parent 6100 40d66bc3e83f
permissions -rw-r--r--
new theorem inj_on_restrict_eq
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)"