|
1
|
This is a simple recipe which uses generators to execute a chain of functions. These functions and their argurments are internally present in a list.Here use of generators and properties defined on the result set gives more control to users.
In the example taken here, there is a group of functions each returning a boolean value. We require different operations to be performed on these functions a) an AND operation of all those return values b) an OR operation of all those return values and results of these define our system. Since the current results of all these functions and their names can be saved in a list, based on manipulation of this result list, various properties can be defined which tell the current status of the system as these functions are executed. |
Add a comment
Sign in to comment

Download
Copy to clipboard
