« first day (2502 days earlier)      last day (84 days later) » 

6:04 AM
AoC Day2
 balls2←{
     d←1↓':;'(~⍤∊⍨⊆⊢)⍵
     ×/⊃⌈/{d←2(⊢⍴⍨÷⍨∘≢,⊣)' ,'(~⍤∊⍨⊆⊢)⍵,', 0 green, 0 red, 0 blue'
         f←d[;2]{⍺,+/⍵}⌸⍎¨d[;1]
         f[;2][⍋f[;1]]}¨d
 }
 
 
8 hours later…
Ven
2:24 PM
@xpqz I think you're missing threeight
 
 
2 hours later…
4:06 PM
lines←⊃⎕NGET'02.txt'1
rgb←{
    n c←↓⍉↑' '(≠⊆⊢)¨1↓',:;'(~⍤∊⍨⊆⊢)⍵
    ('rgb',⊃¨c)(⌈/⊢)⌸(3⍴0),⍎¨n
}¨lines
⎕←+/⍸12 13 14∘(∧.≥)¨rgb
⎕←+/×/¨rgb
 
 
1 hour later…
5:11 PM
@Silas We need to pass the operand from the outer operator to the inner operator.
 
 
1 hour later…
6:15 PM
@Ven I must have been lucky with the data…
 
 
3 hours later…
9:22 PM
saw on jwiki that for example eight can be replaced by e8t so the consecutive replace can work
 

« first day (2502 days earlier)      last day (84 days later) »