Added test for foldi
This commit is contained in:
parent
a081f2dacf
commit
6c8a83f8c4
1 changed files with 11 additions and 0 deletions
11
test/good/foldi.ept
Normal file
11
test/good/foldi.ept
Normal file
|
@ -0,0 +1,11 @@
|
|||
const n:int=42
|
||||
|
||||
fun f(a:bool; i:int; acc_in : bool) returns (acc_out : bool)
|
||||
let
|
||||
acc_out = if i = 0 then false else (a & acc_in);
|
||||
tel
|
||||
|
||||
fun g(a: bool^n) returns (o:bool)
|
||||
let
|
||||
o = foldi f <<n>>(a, true);
|
||||
tel
|
Loading…
Reference in a new issue