File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -952,9 +952,9 @@ Set up a pipe by calling ``piped`` for the initial value. Pipe into the sentinel
952952from unpythonic import lazy_piped1, exitpipe
953953
954954lst = [1 ]
955- def append_succ(l ):
956- l .append(l [- 1 ] + 1 )
957- return l # this return value is handed to the next function in the pipe
955+ def append_succ(lis ):
956+ lis .append(lis [- 1 ] + 1 )
957+ return lis # this return value is handed to the next function in the pipe
958958p = lazy_piped1(lst) | append_succ | append_succ # plan a computation
959959assert lst == [1 ] # nothing done yet
960960p | exitpipe # run the computation
Original file line number Diff line number Diff line change @@ -241,9 +241,9 @@ def __or__(self, f):
241241 Examples::
242242
243243 lst = [1]
244- def append_succ(l ):
245- l .append(l [-1] + 1)
246- return l # important, handed to the next function in the pipe
244+ def append_succ(lis ):
245+ lis .append(lis [-1] + 1)
246+ return lis # important, handed to the next function in the pipe
247247 p = lazy_piped1(lst) | append_succ | append_succ # plan a computation
248248 assert lst == [1] # nothing done yet
249249 p | exitpipe # run the computation
You can’t perform that action at this time.
0 commit comments