mojo
mojo copied to clipboard
[BUG]: VScode trim parallelize definition
Bug description
the autocomplete suggest:
(function) fn parallelize[func: fn(Int, /) capturing
it seems that the definition is trimmed compared to the one in the docs:
parallelize[func: fn(Int, /) capturing -> None]()
https://docs.modular.com/mojo/stdlib/algorithm/functional.html#parallelize
same for vectorize:
(function) fn vectorize[simd_width: Int, func: fn[Int](Int, /) capturing
Steps to reproduce
from algorithm import parallelize
fn main():
parallelize #cursor here
System information
- Ubuntu 23.04
- Mojo 0.5