MCPcopy Create free account
hub / github.com/dcharatan/flowmap / _intersperse

Function _intersperse

flowmap/visualization/layout.py:53–58  ·  view source on GitHub ↗
(iterable: Iterable, delimiter: Any)

Source from the content-addressed store, hash-verified

51
52
53def _intersperse(iterable: Iterable, delimiter: Any) -> Generator[Any, None, None]:
54 it = iter(iterable)
55 yield next(it)
56 for item in it:
57 yield delimiter
58 yield item
59
60
61def _get_main_dim(main_axis: Axis) -> int:

Callers 1

catFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected