rfc:functional-elements
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
rfc:functional-elements [2008/03/16 14:59] – Linking the iterate() detail page lstrojny | rfc:functional-elements [2008/03/17 09:38] – Adding new-way UC-2 lstrojny | ||
---|---|---|---|
Line 38: | Line 38: | ||
} | } | ||
</ | </ | ||
+ | |||
Line 45: | Line 46: | ||
* [[rfc:: | * [[rfc:: | ||
* [[rfc: | * [[rfc: | ||
- | * function iterator_true(): | + | * function iterator_true(): |
- | * function iterator_false(): | + | * function iterator_false(): |
+ | |||
+ | ==== Modified use cases ==== | ||
+ | === UC-1: Iterating over an aggregation of objects === | ||
+ | <code php> | ||
+ | iterate(new CallIterator($list, | ||
+ | </ | ||
+ | |||
+ | === UC-2: Iterating over an aggregation of objects and keeping the results === | ||
+ | <code php> | ||
+ | $result = new CallIterator($list, | ||
+ | </ | ||
rfc/functional-elements.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1