MCPcopy Index your code
hub / github.com/clips/pattern / find

Function find

pattern/text/tree.py:54–59  ·  view source on GitHub ↗

Returns the first item in the list for which function(item) is True, None otherwise.

(function, iterable)

Source from the content-addressed store, hash-verified

52### LIST FUNCTIONS #################################################################################
53
54def find(function, iterable):
55 """ Returns the first item in the list for which function(item) is True, None otherwise.
56 """
57 for x in iterable:
58 if function(x) == True:
59 return x
60
61_zip = zip
62def zip(*args, **default):

Callers 3

intersectsFunction · 0.70
headMethod · 0.70
_do_pnpMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…