cryptol/examples/splitAt.cry
2017-07-06 16:51:25 -07:00

10 lines
108 B
Plaintext

x = [1,2,3,4] : [_][8]
y = (splitAt x) : ([2][8],[2][8])
a = y.0 @ 0
b = y.0 @ 1
c = y.1 @ 0
d = y.1 @ 1