comparison graal/com.oracle.truffle.sl.test/tests/FunctionLiteral.sl @ 13883:ff3136ecb5a7

SL: small changes
author Christian Wimmer <christian.wimmer@oracle.com>
date Wed, 05 Feb 2014 03:16:21 -0800
parents
children
comparison
equal deleted inserted replaced
13870:d04be74665fb 13883:ff3136ecb5a7
1 function add(a, b) {
2 return a + b;
3 }
4
5 function sub(a, b) {
6 return a - b;
7 }
8
9 function foo(f) {
10 println(f(40, 2));
11 }
12
13 function main() {
14 foo(add);
15 foo(sub);
16 }