Skip to content

fn:append #2354

@ChristianGruen

Description

@ChristianGruen

It is trivial to append items to a sequence, but it is a bit counterintuitive to do so the functional way, for example within chains:

(1, 3, 5)
=> fn { ., 7, 9 }()
=> string-join(',')

I propose adding a simple fn:append function, as counterpart of array:append:

(1, 3, 5)
=> append((7, 9))
=> string-join(',')

It is easier to prepend items: we already have fn:insert-before (and array:insert-before).

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureA change that introduces a new featureXQFOAn issue related to Functions and Operators

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions