Skip to content

Pop the latest expression and return the input(s) of the popped expression

Description

Pop the latest expression and return the input(s) of the popped expression

Usage

<Expr>$meta$pop(..., schema = NULL)

Arguments

These dots are for future extensions and must be empty.
schema An optional schema. Must be NULL or a named list of DataType.

Value

A polars expression

Examples

library("polars")

e <- pl$col("foo") + pl$col("bar")
first <- e$meta$pop()[[1]]

first$meta$eq(pl$col("bar"))
#> [1] TRUE
first$meta$eq(pl$col("foo"))
#> [1] FALSE