Skip to content

Wild #2

@alper

Description

@alper

Totally wild that this could be done in a fold. Kudos!

(7..target).fold(4, |last, i| i - seen.insert(last, i).unwrap_or(i))

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