This file contains hidden or 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
| import itertools | |
| def fibonacci_generator(): | |
| a, b = 1, 2 | |
| while True: | |
| yield a | |
| a, b = b, a + b | |
| def calculate_even_fibonacci_sum(limit): | |
| even_fibs = filter(lambda n: n%2 == 0, fibonacci_generator()) |
This file contains hidden or 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
| func() { | |
| echo hello | |
| echo MARKER | |
| echo -- $@ | |
| var1=$1 | |
| var2=$2 | |
| } |
This file contains hidden or 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
| func() { | |
| echo hello | |
| echo MARKER | |
| echo -- $@ | |
| var1=$1 | |
| var2=$2 | |
| } |
OlderNewer