Prepend

public struct Prepend: Fn

Prepend returns a new Array that is the result of prepending elements onto the Array toCollection.

Reference.

  • Declaration

    Swift

    public init(elements: Expr, to collection: Expr)

    Parameters

    elements

    Elements to prepend.

    collection

    Collection to be prepended.