-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for column-level location data (#15)
This change adds support for the version 2 of the MOJO binary format specification, which introduces the extra column-level location information.
- Loading branch information
Showing
4 changed files
with
145 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from time import sleep | ||
|
||
def lazy(n): | ||
for _ in range(n): | ||
sleep(0.1) | ||
yield _ | ||
|
||
|
||
def fib(n): | ||
a, b = 0, 1 | ||
for _ in range(n): | ||
yield a | ||
a, b = b, a + b | ||
|
||
a = [ | ||
list(fib(_)) | ||
for _ in lazy(30) | ||
] | ||
|
||
print(a) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters