ligo/src/test/contracts/map.mligo
2019-09-24 14:29:18 +02:00

8 lines
159 B
Plaintext

type foobar = (int , int) map
let foobar : foobar = Map.empty
let foobarz : foobar = Map.literal [ (1 , 10) ; (2 , 20) ]
let foo : int = Map.find 1 foobarz