Skip to content

Commit 6eed5b2

Browse files
committed
oops
1 parent c2ec623 commit 6eed5b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

unpythonic/test/test_fold.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,12 @@ def noneadd(a, b):
123123

124124
# Lazy map, like Python's builtin.
125125
def makeop(f):
126-
@rotate(-1) # --> *elts, acc
126+
@rotate(-1) # --> op(*elts, acc)
127127
def op(acc, *elts):
128128
return f(*elts)
129129
return op
130-
mymap_ = curry(lambda f: curry(scanl, makeop(f), None)) # (None, *map(...))
131-
mymap2 = lambda *iterables: tail(mymap_(*iterables))
130+
mymap_ = curry(lambda f: curry(scanl, makeop(f), None)) # --> (None, *map(...))
131+
mymap2 = lambda *args: tail(mymap_(*args))
132132
assert tuple(curry(mymap2, myadd, (1, 2, 3), (2, 4, 6))) == (3, 6, 9)
133133

134134
reverse_one = curry(foldl, cons, nil)

0 commit comments

Comments
 (0)