10 lines
153 B
Text
10 lines
153 B
Text
|
|
include "short.salm";
|
||
|
|
|
||
|
|
fun apply(list, ageless to_apply)
|
||
|
|
(comp(x; list) (to_apply(x)));
|
||
|
|
|
||
|
|
fun square(x) (x*x);
|
||
|
|
|
||
|
|
iter(x; apply([0...9], square))
|
||
|
|
x!;
|