The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

types.vector

Provides functions for creating and manipulating vectors of values.

vec

Description

Converts a list of values into a vector, returning the vector. If no values are provided, an empty vector is returned.

Usage

[<list>]

Examples

    :emphasize-lines: 2

    (vec 1 (seq 5 7) 10)
    [1 5 6 7 10]