Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Composition of Functions solution in Creative category for Backward Each Word by flpo
from functools import reduce, partial
from operator import methodcaller, itemgetter
compose = lambda *funcs: lambda args: reduce((lambda x, f: f(x)), reversed(funcs), args)
map_backward = partial(map, itemgetter(slice(None, None, -1)))
backward_string_by_word = compose(' '.join, map_backward, methodcaller('split', ' '))
Feb. 29, 2020