1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::*;

/// Take several expressions and collect them into a [`StructChunked`].
pub fn as_struct(exprs: Vec<Expr>) -> Expr {
    Expr::Function {
        input: exprs,
        function: FunctionExpr::AsStruct,
        options: FunctionOptions {
            input_wildcard_expansion: true,
            pass_name_to_apply: true,
            collect_groups: ApplyOptions::ElementWise,
            ..Default::default()
        },
    }
}