Skip to content

Recursive map over nested lists #720

@vspinu

Description

@vspinu

A common scenario for me is to map over nested lists. AFAIK there is no built in or purr functionality for this.

Basically an rapply version but which would operate not just on leaves but also on the inner nodes.

Example:

rmap(sessionInfo(), unclass)

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions