o/, I have a general question I can phrase in a specific manner.
I'm working on https://codegolf.stackexchange.com/questions/276269/building-skyscrapers, and I ended up with this:
{⍸((⍵=2)×2|⍳⍴⍵)∨{(~2|+/⍵) (∨/2=⍵) 0[⍵[1]]}⌺3⊢⍵}
Now while this *works*, it doesn't very feel very array-ish, but I'm not sure how to refactor this best. I've also solved a challenge yesterday in which I did "selection", but not being able to make an array of functions I can index into and call messes with my brain.
I'm working on https://codegolf.stackexchange.com/questions/276269/building-skyscrapers, and I ended up with this:
{⍸((⍵=2)×2|⍳⍴⍵)∨{(~2|+/⍵) (∨/2=⍵) 0[⍵[1]]}⌺3⊢⍵}
Now while this *works*, it doesn't very feel very array-ish, but I'm not sure how to refactor this best. I've also solved a challenge yesterday in which I did "selection", but not being able to make an array of functions I can index into and call messes with my brain.