June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
|
|
@ -6,13 +6,13 @@ program =
|
|||
[
|
||||
var partial := (:afs:af)((:s)(afs eval(af, s))).
|
||||
|
||||
var fs := (:f:s)(s selectBy(:x)(f eval:x); summarize(ArrayList new); toArray).
|
||||
var fs := (:f:s)(s selectBy(:x)(f(x)); summarize(ArrayList new); toArray).
|
||||
var f1 := (:x)(x * 2).
|
||||
var f2 := (:x)(x * x).
|
||||
|
||||
var fsf1 := partial eval(fs, f1).
|
||||
var fsf2 := partial eval(fs, f2).
|
||||
var fsf1 := partial(fs, f1).
|
||||
var fsf2 := partial(fs, f2).
|
||||
|
||||
console printLine(fsf1 eval:(2,4,6,8)).
|
||||
console printLine(fsf2 eval:(2,4,6,8)).
|
||||
console printLine(fsf1((2,4,6,8))).
|
||||
console printLine(fsf2((2,4,6,8))).
|
||||
].
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue