Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

Allow manipulating strings directly? #9

Description

@lgarron

This is less performant, but super convenient:

> expand("(R U)2")
"R U R U"

Can easily be done by separating the Traversal[Down]Up.traverse() entry point from a recursive entry point, and translating the input from/to a string if it was given as a string.

The main problem I see is that the performance issue might be masked, and users might perform a lot of conversions back and forth:

structureEquals(invert(expand("(R U)2")), expand(invert("(R U)2")))

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