Skip to content

Create List DataType

Source code

Description

Create List DataType

Usage

DataType_List(datatype = "unknown")

Arguments

datatype The inner DataType.

Value

A list DataType with an inner DataType

Examples

library("polars")

# some nested List
pl$List(pl$List(pl$Boolean))
#> DataType: List(
#>     List(
#>         Boolean,
#>     ),
#> )
# check if some maybe_list is a List DataType
maybe_List = pl$List(pl$UInt64)
pl$same_outer_dt(maybe_List, pl$List())
#> [1] TRUE