Skip to content

array.{first,last} default argument in value position #5960

@MDLC01

Description

@MDLC01

Description

In value position, allow passing a named default argument to array.first and array.last that would behave like the one on array.at.

Use Case

Being able to use the more readable array.first and array.last methods instead of array.atwith 0 and -1 when a default value is needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    change requestA proposal for changes to an existing featurescriptingAbout Typst's coding capabilities

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions