Helpers

Find

bale.helpers.find(predicate, iterable)

A helper to return the first element in the sequence that meets the predicate.

Parameters:
  • predicate – A function to return boolean-like result.

  • iterable (str) – An iterable to search through.