Kernighans large earthquake problem: Difference between revisions

m
(→‎{{header|Python}}: An in-memory variant)
Line 354:
xs = concatMap(
lambda x: (
lambda csws=colswords(x): (
lambda n=float(csws[2]):
[csws] if 6 < n else []
)()
)()
Line 368:
# GENERIC ABSTRACTIONS ----------------------------
 
# colswords :: String -> [String]
def colswords(s):
return re.split('\s+', s)
 
9,659

edits