You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
advent-of-code/2022/bqn/day_05.bqn

9 lines
296 B

Split {𝕩˜(-˜+`׬)0=¨𝕩}
Transpose ={<𝕨𝕨>𝕩}
OnlyCrates ('A'+26)/
RejectEmpty {((¨𝕩) > 0) / 𝕩}
stacks, moves Split •Flines "../day_05.txt"
stacks RejectEmpty OnlyCrates¨ Transpose stacks
•Show stacks