Skip to content

Variadic form of "append" builtin #106

Description

@quasilyte

There is condition inside current append implementation:

if len(args) != 2 {
	panic(exn.NoImpl("variadic append"))
}

This means that only append(S, X) works.
emacs/rt has SlicePush, which is a specialization to that particular case.

append(S, X, YS...) fails to compile.
SliceConcat is required to support that.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions