| Category: functors | Component type: concept | 
| Result type | The type returned when the Generator is called | 
| F | A type that is a model of Generator | 
| Result | The result type of F | 
| f | Object of type F | 
| Name | Expression | Type requirements | Return type | 
|---|---|---|---|
| Function call | f() | Result | 
| Name | Expression | Precondition | Semantics | Postcondition | 
|---|---|---|---|---|
| Function call | f() | Returns some value of type Result [1] | The return value is in f's range. | 
[1] Two different invocations of f may return different results: a Generator may refer to local state, perform I/O, and so on. The expression f() is permitted to change f's state; f might, for example, represent a pseudo-random number generator.
![]()
| Contact Us | Site Map | Trademarks | Privacy | Using this site means you accept its Terms of Use | 
| Copyright © 1993-2006 Silicon Graphics, Inc. All rights reserved. |