colour.utilities.
first_item
Return the first item of an iterable.
a (object) – Iterable to get the first item from.
object
StopIteration – If the iterable is empty.
Examples
>>> a = range(10) >>> first_item(a) 0