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