Bioinformatics/base count: Difference between revisions
m
→Python :: Functional: tidying
m (→{{header|Phix}}: bugfix (join_by has been tweaked)) |
m (→Python :: Functional: tidying) |
||
Line 715:
# -------------------------- TEST
# main :: IO ()
def main():
Line 735:
# ------------------------
# chunksOf :: Int -> [a] -> [[a]]
Line 754:
of a series of functions.
'''
return reduce(go, fs, lambda x: x)
Line 770 ⟶ 771:
# flip :: (a -> b -> c) -> b -> a -> c
def flip(f):
'''The (curried or uncurried) function f with its
arguments reversed.
'''
|