Re:The Panda Language: No Loops, No Ifs, Just Fun
by gandercrews on Tuesday May 12, 2020 @05:28PM
(#23160115)
nah its pretty straightforward w/ higher order fns.
one of many possible solutions:
{(1○⍺)>2○⍵} {(⍹ ⍵)/⍨⍵ ⍶ ⍹ ⍵} {⍵*2} {⍵/⍨2|⍵}⍳50
1 9 49 225 361 441 625 1089 1521 1681 2025 2209
As to your "why" question - I'm assuming to make a neat demo. Something like:
seems more difficult to pull off in a pipeline API.