eachAt#

swordfish.function.eachAt()#

If index is a Boolean expression, returns the elements in X that satisfy the condition specified by index (i.e., index = true). If not, returns the elements in X with the corresponding index.

If X is a function, index is used as an argument of X.

Parameters:
  • X (Constant) – A scalar/vector(including tuple and array vector)/matrix/table/dictionary/pair/unary function.

  • index (Constant) – A Boolean expression/scalar/vector/tuple/array vector/pair.