Post History
BQN (CBQN), 9 bytes ++2⊸=∧=⟜2 This utilizes the "3-train"- any functions in the form w fgh x is turned into (w f x) g (w h x). In this case, 2⊸= and =⟜2 are functions that check if the right a...
Answer
#1: Initial revision
# [BQN (CBQN)](https://mlochbaum.github.io/BQN/), 9 bytes ``` ++2⊸=∧=⟜2 ``` This utilizes the "3-train"- any functions in the form `w fgh x` is turned into `(w f x) g (w h x)`. In this case, `2⊸=` and `=⟜2` are functions that check if the right and left arguments are equal to `2` respectively, `and`ed together with `∧`. This is `1` if so, `0` if not. `+` is the function to add numbers together. ``` + + (2⊸= ∧ =⟜2 ) sum of the args added to (right = 2 and left = 2) ``` [Attempt This Online!](https://ato.pxeger.com/run?1=m704qTBvwYKlpSVpuhY3_d0UHrVNUNDWNnrUtcP2Ucdy20fz5xhxcT1qWBSckV-uYKzgpmAM5xkBeUZwniGIZwDnWoK4EGOhpsNsAQA)