rfc:functional-elements
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:functional-elements [2008/03/16 14:59] – Linking the iterate() detail page lstrojny | rfc:functional-elements [2017/09/22 13:28] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
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 = iterate(new CallIterator($list, | ||
+ | </ | ||
rfc/functional-elements.1205679560.txt.gz · Last modified: 2017/09/22 13:28 (external edit)