|
|
|
@ -0,0 +1,12 @@
|
|
|
|
|
# Experimental!
|
|
|
|
|
|
|
|
|
|
$ xmul(2,4)&mul[3,7]!^don't()_mul(5,5)+mul(32,64](mul(11,8)undo()?mul(8,5))
|
|
|
|
|
Input ←
|
|
|
|
|
|
|
|
|
|
Part₁ ← /+≡/×⋕↘0_1regex "mul\\((\\d+),(\\d+)\\)"
|
|
|
|
|
|
|
|
|
|
DontDos ← ∩(⊚⌕)"do()","don't()"
|
|
|
|
|
Disabled ← ≡(⊂⤚(⊢▽>,)) ¤DontDos
|
|
|
|
|
Part₂ ← Part₁ ▽¬/∨≡(≤⇡:°⊟) Disabled .
|
|
|
|
|
|
|
|
|
|
⊂⊃Part₁Part₂ Input
|