Hi everyone, I don't know if this is the right place to ask, so if it isn't please redirect me :)
I'm very much a newcomer to this language, so I'm starting out by trying to solve simple problems: right now I'm trying to write a function that computes the element-wise sum of two vectors when both elements are non zero, and returns 0 otherwise. For example:
¯1 1 1 f 0 1 ¯2
yields 0 2 ¯1
Because I'm currently struggling with trains, I tried to write a tacit function to perform this operation, and I came up with this abomination: