Oh, cause 1+1=2?
oh yeah
adding 2 bits together
that's an interesting one
it took me too long to understand it
exactly
yeah so if only A or only B = 1 and the other = 0 then it will return 1
I actually first thought of that. Unfortunately I thought it was in the length of block, so I didn't see it.
Because I wanted to put the result on the right most column, which is the end of the list. I also didn't think of a better way to do it.
Although admittedly now that I think about it, I could've written the script like this.
Oh, right, duh, I'm slow.
PS I actually like the APPEND solution better because FLATTEN works only if the relevant list items are atomic.
the block returns this basically
so
A is true and B is true (meaning they are equal) would return false
A is true and B is false (meaning they arent equal) would return true
A is false and B is true would return true
A is false and B is false would return false
i dont like that solution because it will throw an error in alot of languages, booleans arent ment to be numbers so adding them is a bad idea
(it also means you cant do vardradics, the way a vardradic block would work is i assume something like scrap mechanic where it returns true if there is an odd number of inputs that are true)
Yeah, I wouldn't write it that way in an actual project either. I was making the point that you can't ask for "the right" way to implement some function because there are always lots of possible implementations.