Re:The Array Cast – A podcast about the array programming la...
by rak1507 on Friday May 21, 2021 @06:45AM
(#27232429)
⍵≡'*' should be ⍵≡,'*' like in the original k
us←⊃,⍥⊆2{(⍺≡⊃K)∧⍵≡,'*':,'_'⋄⍵}/⊢ is shorter anyway
Re:The Array Cast – A podcast about the array programming la...
by geocar on Friday May 21, 2021 @11:24AM
(#27235246)
us←{'_'@{¯1⌽⍵⍷⍨(⊂⊃K),'*'}⍵}
Re:The Array Cast – A podcast about the array programming la...
by rak1507 on Friday May 21, 2021 @11:50AM
(#27235601)
Ah, ⍷, clever, don't even need the outer {...⍵},
us←'_'@{¯1⌽⍵⍷⍨(⊂⊃K),'*'}
Re:The Array Cast – A podcast about the array programming la...
by geocar on Friday May 21, 2021 @12:28PM
(#27236178)
Yes!
You could also do: ⌽'*',⊂⊃K to save another character. I don't know if that's "better" though.
Re:The Array Cast – A podcast about the array programming la...
by rak1507 on Friday May 21, 2021 @12:57PM
(#27236643)
Or alternatively '*',⍨⊂⊃K which I think I prefer over ⌽, but neither seem that 'better' in my mind anyway.
Re:The Array Cast – A podcast about the array programming la...
by wanderer2323 on Saturday May 22, 2021 @03:17AM
(#27244297)
Is this the same language or a different one?
us←{('_'@(1+⍸2{(⍺≡⊃K)∧⍵≡'*'}/⍵))⍵}
is one(1) character shorter.