Skip to content

std/stream: range should take a function for step #200

@DeedleFake

Description

@DeedleFake

Currently, range takes a start, end, and step, where the step is a number that is added to the current value to progress from the start to the end. It would be neat if you could give a function that returns the next value from the current, such that, for example, range 0 5 (+ 1) would do the same thing as range 0 5 1.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions