Skip to main content
Log in

Mojo function

map

map[func: fn(Int) capturing -> None](size: Int)

Maps a function over a range from 0 to size.

Parameters:

  • func (fn(Int) capturing -> None): Function to map.

Args:

  • size (Int): The number of elements.

Was this page helpful?