Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
7
Task/Population-count/Zkl/population-count.zkl
Normal file
7
Task/Population-count/Zkl/population-count.zkl
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
n:=1; do(30){ print(n.num1s,","); n*=3 } println();
|
||||
|
||||
println("evil: ",[0..].filter(30,fcn(n){ n.num1s.isEven }).concat(","));
|
||||
|
||||
// now, as an iterator aka lazy:
|
||||
println("odious: ",(0).walker(*).tweak( // 0,1,2,3,4... iterator
|
||||
fcn(n){ if(n.num1s.isEven) Void.Skip else n }).walk(30).concat(","));
|
||||
Loading…
Add table
Add a link
Reference in a new issue