delta.utilities.findfirst

delta.utilities.findfirst(mylist: List) Optional[int]

Find first non-zero element of list

Parameters
mylistlist

List of elements to scan through.

Returns
int or None

Index of first non-zero element, if it exists.