Generator/Exponential: Difference between revisions
→{{header|Python}}: used a def in place of curry and flip
(→{{header|Python}}: Added a {Works with} tag to compositional version) |
(→{{header|Python}}: used a def in place of curry and flip) |
||
Line 2,377:
raised to the nth power.'''
def f(x):
return fmapGen(flip(curry(pow))(n))(▼
Line 2,398 ⟶ 2,399:
# GENERIC -------------------------------------------------
Line 2,438 ⟶ 2,432:
return xs
return lambda xs: go(xs)
|