cryptol/tests/issues/issue108.cry

5 lines
113 B
Plaintext
Raw Normal View History

2014-04-18 02:34:25 +04:00
sum : {a,b} (fin a, fin b) => [a][b] -> [b]
sum xs = ss ! 0
where
ss = [0] # [ s + x | x <- xs | s <- ss ]