Skip to content

Commit e8f0810

Browse files
author
czheo
committed
update README.md
1 parent 7180728 commit e8f0810

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ print(1 /to/ INF /take/ 5)
113113
# there is a `take` funciton which is similar to itertools.islice
114114
# return [1, 2, 3, 4, 5]
115115

116+
print(0 /to/ NEGINF /by/ 2 /take/ 5)
117+
# also works with negative infinity.
118+
# return [0, -2, -4, -6, -8]
119+
116120
# print all combinations of [1..3] * [4..6]
117121
print([(x, y) for x, y in (1 /to/ 3) * (4 /to/ 6)])
118122
# return [(1, 4), (1, 5), (1, 6), (2, 4), (2, 5), (2, 6), (3, 4), (3, 5), (3, 6)]

0 commit comments

Comments
 (0)