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

06:04
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
Ven
14:24
@xpqz I think you're missing threeight
 
2 hours later…
16:06
lines←⊃⎕NGET'02.txt'1
rgb←{
    n c←↓⍉↑' '(≠⊆⊢)¨1↓',:;'(~⍤∊⍨⊆⊢)⍵
    ('rgb',⊃¨c)(⌈/⊢)⌸(3⍴0),⍎¨n
}¨lines
⎕←+/⍸12 13 14∘(∧.≥)¨rgb
⎕←+/×/¨rgb
 
1 hour later…
17:11
@Silas We need to pass the operand from the outer operator to the inner operator.
 
1 hour later…
18:15
@Ven I must have been lucky with the data…
 
3 hours later…
21:22
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 (432 days later) »