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
fix = lambda f: lambda a: \ | |
f(fix(f))(a) | |
power = lambda x: lambda n: \ | |
fix(lambda g: lambda n: 1 if n == 0 else x * g(n-1))(n) | |
factorial = lambda n: \ | |
fix(lambda g: lambda n: 1 if n == 0 else n * g(n-1))(n) | |
power(3)(4) | |
# 3^4 = 81 |
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
from robobrowser import RoboBrowser | |
import re | |
goterms = """ | |
GO:0009268 1e-14 | |
GO:0010447 1e-14 | |
GO:0000027 1e-297 | |
GO:0042255 1e-297 | |
GO:0042257 1e-297 | |
GO:0042273 1e-297 |