This works in Dyalog APL but not in GNU APL:
{10<⊃⍵:⍵ ⋄ ∇ ⍵,⍨+/2↑⍵}1
The error I get is
Illegal : in immediate execution+
I am using the REPL but I tried running it from a file as well but it didn't work either.
If something I am using is specific to Dyalog, what is the correct GNU way to do it?