| TypeCast/MaryK | TypeCast/Beka00 | ||||
|---|---|---|---|---|---|
| f | 1 | from functools import wraps | f | 1 | from functools import wraps |
| 2 | 2 | ||||
| 3 | 3 | ||||
| t | 4 | def cast(typ): | t | 4 | def cast(arg): |
| 5 | def newcast(fun): | 5 | def one(arg2): | ||
| 6 | @wraps(fun) | 6 | @wraps(arg2) | ||
| 7 | def newcast1(*args): | 7 | def fun(*args): | ||
| 8 | return typ(fun(*args)) | 8 | return arg(arg2(*args)) | ||
| 9 | return newcast1 | 9 | return fun | ||
| 10 | return newcast | 10 | return one | ||
| 11 | 11 | ||||
| Legends | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
| |||||||||