WLJS LogoWLJS Notebook

SameAs

SameAs[y] is an operator form that yields x === y when applied to an expression x.

This is useful for filtering and selecting with functional programming constructs.

Examples

SameAs[5][5]
Select[{1, 2, 5, 3, 5}, SameAs[5]]
Cases[{a, b, a, c, a}, SameAs[a]]

*See the official Wolfram Language Reference for more details.

On this page