@EliasMårtenson well, there definitely are some one-liners for it, but they must involve some function being applied for each item of ⍺ separately, depending on the previous result
@MortenKromberg In a statically compiler language, the ⍺|⍵ and ⌊⍵÷⍺ in the iterative solution would become one instruction. No chance of that happening in yours