Check if two expressions are equivalent
Description
Indicate if this expression is the same as another expression. See also
the counterpart $meta$neq()
.
Usage
<Expr>$meta$eq(other)
Arguments
other
|
Expr to compare with |
Value
A logical value
Examples
library("polars")
# three naive expression literals
e1 = pl$lit(40) + 2
e2 = pl$lit(42)
e3 = pl$lit(40) + 2
# e1 and e3 are identical expressions
e1$meta$eq(e3)
#> [1] TRUE
#> [1] TRUE
#> [1] FALSE