Skip to content

Check if two expressions are different

Source code

Description

Indicate if this expression is different from another expression. See also the counterpart $meta$eq().

Usage

<Expr>$meta$neq(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$neq(e3)
#> [1] FALSE
# when evaluated, e1 and e2 are equal
e1$neq(e2)$to_r()
#> [1] FALSE
# however, on the meta-level, e1 and e2 are different
e1$meta$neq(e2)
#> [1] TRUE