Transformation for Sequence.order_by :param func: order_by function :return: transformation
(func)
| 184 | |
| 185 | |
| 186 | def order_by_t(func): |
| 187 | """ |
| 188 | Transformation for Sequence.order_by |
| 189 | :param func: order_by function |
| 190 | :return: transformation |
| 191 | """ |
| 192 | return Transformation( |
| 193 | "order_by({0})".format(name(func)), |
| 194 | lambda sequence: sorted(sequence, key=func), |
| 195 | None, |
| 196 | ) |
| 197 | |
| 198 | |
| 199 | def drop_right_t(n): |