heptagon/test/good/array_fill.ept
Léonard Gérard 1d6feeef54 some more tests
2011-05-26 15:56:59 +02:00

18 lines
338 B
Plaintext

const n : int = 33
node stopbb(shiftenable : bool) returns (dataout : bool^n)
var last dataint : bool^n; f : bool;
let
f = false;
dataout = (f^n) fby dataint;
switch shiftenable
| true do dataint = [true] @ dataout[0 .. n - 2];
| false do
end
tel
node main() returns (dataout : bool^n)
let
dataout = stopbb(true);
tel