Ordered words: Difference between revisions
Content deleted Content added
Added FutureBasic solution |
→Python: As a fold: Simplified `ordered` function. |
||
Line 3,689:
from functools import reduce
from operator import le
import urllib.request
Line 3,708 ⟶ 3,709:
return (
(lng, ([w] if n != lng else xs + [w])) if (
) else nxs
) if lng >= n else nxs
#
def
'''True if the word w is ordered.'''
return
|