Transformation for Sequence.take_while :param func: takes while func is True :return: transformation
(func)
| 245 | |
| 246 | |
| 247 | def take_while_t(func): |
| 248 | """ |
| 249 | Transformation for Sequence.take_while |
| 250 | :param func: takes while func is True |
| 251 | :return: transformation |
| 252 | """ |
| 253 | return Transformation( |
| 254 | "take_while({0})".format(name(func)), partial(takewhile, func), None |
| 255 | ) |
| 256 | |
| 257 | |
| 258 | def flat_map_impl(func, sequence): |