MCPcopy Index your code
hub / github.com/TheAlgorithms/Python / some

Function some

data_structures/arrays/sudoku_solver.py:148–153  ·  view source on GitHub ↗

Return some element of seq that is true.

(seq)

Source from the content-addressed store, hash-verified

146
147
148def some(seq):
149 """Return some element of seq that is true."""
150 for e in seq:
151 if e:
152 return e
153 return False
154
155
156def search(values):

Callers 1

searchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected