Skip to content

Consider making cprop cursors associative #59

@p-himik

Description

@p-himik

With plain maps, you can use any of the below options to get a value at a specific key:

(m :k)
(:k m)
(get m :k)

With cprop cursors, you can only use the first variant.

The change should be relatively straightforward - cursors can become structures that implement ILookup (no other interfaces are necessary unless you want to bridge the gap between cursors and maps even further) as well as IFn. Unless somebody uses fn? on cursors, this should be a non-breaking change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions