cryptol/tests/issues/issue058.cry
2014-12-11 15:50:22 -08:00

11 lines
193 B
Plaintext

// None of these should typecheck without fin constraints.
some : {n} [n] -> Bit
some x = x != 0
last : {n, a} (n >= 1) => [n]a -> a
last xs = xs ! 0
pad : {n} [n] -> [inf]
pad x = x # zero