Skip to content

Commit 2306c1c

Browse files
authored
Update README.md
1 parent 03cca52 commit 2306c1c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,9 @@ for i in 1 /to/ INF:
165165
# there is a `take` functon which is similar to itertools.islice
166166
# return [1, 2, 3, 4, 5]
167167

168+
1 /to/ ... /take/ 5 /as_a/ list
169+
# ... is equivalent to INF
170+
168171
0 /to/ -INF /step/ 2 /take/ 5 /as_a/ list
169172
# also works with negative infinity.
170173
# return [0, -2, -4, -6, -8]

0 commit comments

Comments
 (0)