ligo/contracts/function-shared.ligo

9 lines
232 B
Plaintext
Raw Normal View History

2019-05-13 00:56:22 +04:00
function inc ( const i : int ) : int is
block { skip } with i + 1
function double_inc ( const i : int ) : int is
block { skip } with inc(i + 1)
function foo ( const i : int ) : int is
block { skip } with inc(i) + double_inc(i)