sinstance(value, int):
10|print value,"- is int"
11|else:
12|print value,"- is not int"
Task is to create lazy evaluation for function 'foo'. For decision this
task we create special function 'lazy' which turn original function into
a la
isinstance(value, int):
> 10|print value,"- is int"
> 11|else:
> 12|print value,"- is not int"
>
> Task is to create lazy evaluation for function 'foo'. For decision this
> task we create special function 'lazy' which turn
- is not int"
Task is to create lazy evaluation for function 'foo'.
For decision this task we create special function 'lazy' which turn
original function into a lazy evaluated function by means of creating
proxy object that evaluated value if needed. We add following c