colour.utilities.first_item¶
- colour.utilities.first_item(a)[source]¶
Return the first item of an iterable.
- Parameters
a (object) – Iterable to get the first item from.
- Return type
- Raises
StopIteration – If the iterable is empty.
Examples
>>> a = range(10) >>> first_item(a) 0