MCPcopy Create free account
hub / github.com/EntilZha/PyFunctional / where_t

Function where_t

functional/transformations.py:91–101  ·  view source on GitHub ↗

Transformation for Sequence.where :param func: where function :return: transformation

(func)

Source from the content-addressed store, hash-verified

89
90
91def where_t(func):
92 """
93 Transformation for Sequence.where
94 :param func: where function
95 :return: transformation
96 """
97 return Transformation(
98 "where({0})".format(name(func)),
99 partial(filter, func),
100 {ExecutionStrategies.PARALLEL},
101 )
102
103
104def filter_not_t(func):

Callers

nothing calls this directly

Calls 1

nameFunction · 0.85

Tested by

no test coverage detected