MCPcopy Create free account
hub / github.com/reactjs/react-modal / adjacents

Function adjacents

scripts/changelog.py:81–92  ·  view source on GitHub ↗
(ls, f, res)

Source from the content-addressed store, hash-verified

79
80
81def adjacents(ls, f, res):
82 if len(ls) == 0:
83 return res
84
85 first = ls[0]
86 if len(ls) == 1:
87 next = None
88 else:
89 next = ls[1]
90
91 res.append(f(first, next))
92 return adjacents(ls[1:], f, res)
93
94
95def to_version(tag):

Callers 1

generate_allFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected