Skip to content

A LISP-style PersistentLinkedList would be nice #203

@sbohmann

Description

@sbohmann

It's the easiest-to-implement persistent data structure, and there are lots of classic functional algorithms that work best when building a list in reverse.

(cons 1 someList)

which creates a new list, starting with 1, followed by the contents of someList, might be e.g. expressed as

someList.prependedBy(1)

or, of course, some better, more concise name.

I'm not good at naming, so I tend to use very obvious, yet also very long, names 😅

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions