ligo/test.mligo

11 lines
208 B
Plaintext
Raw Normal View History

2020-03-07 02:44:28 +04:00
type parameter = int * int
let rec fibo ((n,acc):int * int) : int =
if (n < 1) then acc
else fibo (n-1, acc+n)
let main ((p,s):parameter*int) =
let s = fibo (p) in
([] : operation list),s