Skip to main content

Mojo function

map

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

Maps a function over a range from 0 to size.

Parameters:

  • origins (origin.set): The capture origins.
  • func (fn(Int) capturing -> None): Function to map.

Args:

  • size (Int): The number of elements.