Closed Catya3 closed 2 weeks ago
I realized we have lists.Index
already
Uhh we still need this. I don't believe Index
works for me as the generic types are not exact.
// Index returns the element at the given index in the ordered collection.
// If the index is out of bounds, it returns an error.
// The index is zero-based.
#extern(index)
pub flow Index<T list<any> | string>(data T, idx int) (res T, err error)
res T is a list
Removes built-in Index
Needed for https://github.com/Catya3/mandelbrot