geo2d.utils.find_first_missing

geo2d.utils.find_first_missing(seq)[source]

Given an ascending sequence seq, the first missing number is returned if any, else None.

Parameters :

seq : list of ints

A sequence of numbers in ascending order in which to search for the first missing element (ie. the sequence is not contiguous and the first gap is found).

Returns :

out : int

If a first missing number is found then it is returned, else None is returned.

Previous topic

geo2d.geometry.Polygon

Next topic

geo2d.utils.float_to_2pi

This Page