☰
Debian Codegraph
@
1.5.5.8-1
/
/
src
/
test
/
01-Basic
/
161-foreach-func.ck
☽
☼
src/test/01-Basic/161-foreach-func.ck
code
plain
raw
GPL-2.0+
2004 Ge Wang and Perry R. Cook. All rights reserved.
debian/copyright
1
fun void foo()
2
{
3
[1,2,3] @=> int array[];
4
for( int a : array )
5
{
6
if( a == 3 ) return;
7
}
8
9
// trap
10
<<< "shouldn't get here" >>>;
11
}
12
13
foo();
14
15
// done
16
<<< "success" >>>;
17