loom
1import "../import/asynch.s-script"
2: async
3
4def auto : factor = fn [factor] (int : x) -> int
5{
6if x <= 1 return 1
7
8return x*factor(x-1)
9}
10
11
12def auto : future = async.future( fn [factor] () { return factor(3) } )
13def int : f = factor(3)
14
15print f
16print f == future.get()
17