We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98d0507 commit a934699Copy full SHA for a934699
1 file changed
synth/syntax/type_helper.py
@@ -31,10 +31,10 @@ def FunctionType(*args: Type) -> Type:
31
"""
32
Short-hand to create n-ary functions.
33
34
- types = list(args)
35
- base = types.pop()
36
- while types:
37
- base = Arrow(types.pop(), base)
+ n = len(args) - 1
+ base = args[-1]
+ for i in range(n - 1, -1, -1):
+ base = Arrow(args[i], base)
38
return base
39
40
0 commit comments