Bioinformatics/base count: Difference between revisions

m
m (→‎{{header|Phix}}: bugfix (join_by has been tweaked))
Line 715:
 
 
# -------------------------- TEST- --------------------------
# main :: IO ()
def main():
Line 735:
 
 
# ------------------------- GENERIC -------------------------
 
# chunksOf :: Int -> [a] -> [[a]]
Line 754:
of a series of functions.
'''
returndef lambdago(f, xg): reduce(
lambdadef a, f: ffg(ax),:
fs[::-1], return f(g(x))
) return fg
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.
'''
9,659

edits