Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
map can take more than 2 arguments solution in Clear category for Ascending List by veky
import typing, itertools, operator
def is_ascending(items: typing.Iterable[int]) -> bool:
items, shifted = itertools.tee(items)
next(shifted, None)
return all(map(operator.lt, items, shifted))
Oct. 14, 2018
Comments: