3 ms·
okay so it's not really smaller because it uses UTF8 also it relies on order of operations to get rid of the parens around ⍵≡'*' but us←{('_'@(1+⍸2{(⍺≡⊃K)∧⍵≡'*
by Avshalom 5y ago
okay so it's not really smaller because it uses UTF8 also it relies on order of operations to get rid of the parens around ⍵≡'*' but
us←{('_'@(1+⍸2{(⍺≡⊃K)∧⍵≡'*'}/⍵))⍵}
is one(1) character shorter.
- rak1507 5y ago⍵≡'*' should be ⍵≡,'*' like in the original k us←⊃,⍥⊆2{(⍺≡⊃K)∧⍵≡,'*':,'_'⋄⍵}/⊢ is shorter anyway
- wanderer2323 5y agoIs this the same language or a different one?
- rak1507 5y agoThis is APL, k is a descendant of APL.