blob: 9ef3e33c627edddc3cd15d85d517cda0e21e861e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
def test a:number -> b:number [
local-scope
load-ingredients
b <- add a, 1
]
def test a:number, b:number -> c:number [
local-scope
load-ingredients
c <- add a, b
]
def main [
local-scope
a:number <- test 3 # selects single-ingredient version
$print a, 10/newline
b:number <- test 3, 4 # selects double-ingredient version
$print b, 10/newline
c:number <- test 3, 4, 5 # prefers double- to single-ingredient version
$print c, 10/newline
]
|