Last active
May 6, 2021 19:38
-
-
Save matejker/8606d661d21885e27d0965e4c5553bff to your computer and use it in GitHub Desktop.
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
def affine_lines(n: int) -> list: | |
return ( | |
[[[x + ((t * x + u) % n) * n for x in range(n)] for u in range(n)] for t in range(0, n)] + | |
[[[x + y * n for y in range(n)] for x in range(n)]] | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment