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

6 lines
130 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
2020-03-02 18:01:56 +01:00
let fold_op (s : int set) : int = Set.fold aggregate s 15