cryptol/examples/splitAt.cry

10 lines
108 B
Plaintext
Raw Normal View History

2017-07-07 02:51:25 +03:00
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