Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -1,5 +0,0 @@
|
|||
all(a == nexta for a, nexta in zip(strings, strings[1:])) # All equal
|
||||
all(a < nexta for a, nexta in zip(strings, strings[1:])) # Strictly ascending
|
||||
|
||||
len(set(strings)) == 1 # Concise all equal
|
||||
sorted(strings, reverse=True) == strings # Concise (but not particularly efficient) ascending
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
from operator import (eq, lt)
|
||||
|
||||
|
||||
xs = ["alpha", "beta", "gamma", "delta", "epsilon", "zeta",
|
||||
"eta", "theta", "iota", "kappa", "lambda", "mu"]
|
||||
|
||||
ys = ["alpha", "beta", "gamma", "delta", "epsilon", "zeta",
|
||||
"eta", "theta", "iota", "kappa", "lambda", "mu"]
|
||||
|
||||
az = sorted(xs)
|
||||
|
||||
print (
|
||||
all(map(eq, xs, ys)),
|
||||
|
||||
all(map(lt, xs, xs[1:])),
|
||||
|
||||
all(map(lt, az, az[1:]))
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue