ligo/src/test/contracts/set_arithmetic-1.mligo

7 lines
132 B
Plaintext
Raw Normal View History

2019-10-29 21:33:48 -07:00
// Test set iteration
let aggregate (i : int) (j : int) : int = i + j
let fold_op (s : int set) : int =
Set.fold aggregate s 15