mask#

swordfish.function.mask()#

Apply Y on each element of X. If the result is false, keep the element; if the result is true, change it to null. The result is of the same length as X.

Parameters:
  • X (Constant) – A scalar/vector/matrix.

  • Y (Constant) – A conditional expression that generates true or false.