Set Functions

Set Functions

mapSet

available since: 1.0.0

Takes a set value and builds a new one of equal size by passing each value through a mapping expression.

struct {
  • expression :expressionTS
  • value :setT
}
setS

Example:

Query:
e.mapSet(e.data(d.set(d.string("_tag"), d.string("_tag"), d.string("_user"))), f.function(["_value_0"], e.tag({
  • scope: "_value_0",
}
)
)
)
Result:
[ [ "MdebvibfDhEUlKPE", "uJMAirJlTXONaOiP" ], [ "MdebvibfDhEUlKPE", "qaYYOudDFrjIFxoJ" ] ]
Notes:

Yields a list of references