TypeCast/JuliaZ
TypeCast/VladislavP
f1from functools import wrapsf1from functools import wraps
22
33
n4def cast(type):n4def cast(t):
5    def functional(func):5    def decor(func):
6        @wraps(func)6        @wraps(func)
n7        def argument(*args):n7        def wrapper(*args):
8            return type(func(*args))8            return t(func(*args))
9        return wrapper
10    return decor
911
t10        return argumentt
11 
12    return functional
13 
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op