Skip to main content

Mojo function

map

map[origins: OriginSet, //, func: fn(Int) capturing -> None](size: Int)

Maps a function over a range from 0 to size.

Parameters:

  • โ€‹origins (OriginSet): The capture origins.
  • โ€‹func (fn(Int) capturing -> None): Function to map.

Args:

  • โ€‹size (Int): The number of elements.

Was this page helpful?