Closed martinvuyk closed 4 months ago
This is a nice change, could you please add tests for it?
added a thorough test and changed this API a bit WDYT ?
fn __getitem__(self, index: Int) -> Optional[Scalar[T]]:
if not (0 <= index < self.length):
return None
if not self.validity[index]:
return None
return self.view[index]
Did the tests pass on your machine? Were you using a nightly?
Did the tests pass on your machine? Were you using a nightly?
yes they did then and they do now as well with nightly mojo 2024.7.205
Closes #9