Skip to content

Rewrite RepeatM in terms of unfoldM #5

@jnape

Description

@jnape

Preliminary testing shows unfold is significantly faster than the current primitive recursive implementation of repeatM, likely due to the JIT's ability to optimize the withSelf call.

Metadata

Metadata

Assignees

No one assigned

    Labels

    performanceChanges that are only perceivable in terms of space or runtime complexity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions