Utility Functions

decibel.utils.find_item_in_list.find_item(list_containing_list, item)[source]

Find the index of the list that contains the item

Parameters
  • list_containing_list – List of lists; one of them must contain the item

  • item – The item we are looking for

Returns

Index of the item in the outer list

>>> find_item([[1,2,3],[4,5,6]],5)
1