ligo/src/test/contracts/map.mligo

8 lines
159 B
Plaintext
Raw Normal View History

2019-09-24 15:54:34 +04:00
type foobar = (int , int) map
let foobar : foobar = Map.empty
let foobarz : foobar = Map.literal [ (1 , 10) ; (2 , 20) ]
2019-09-24 16:29:18 +04:00
let foo : int = Map.find 1 foobarz