rfc:functional-elements
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
rfc:functional-elements [2008/03/16 14:10] – Typo lstrojny | rfc:functional-elements [2008/03/16 14:26] – Rewriting required functionality example lstrojny | ||
---|---|---|---|
Line 39: | Line 39: | ||
</ | </ | ||
- | ==== Extracted functions | + | ==== Required functionality |
- | === spl_iterator_element_call() === | + | Extracting the required functionality to leads to the following required additions: |
- | <code php> | + | * [[rfc: |
- | array|bool spl_iterator_element_call( | + | * function is_traversable(): |
- | array|Iterator | + | * function iterate(): Walks over a traversable list and does nothing |
- | string|array $methods, | + | * function iterator_true(): |
- | array $params = array(), | + | * function iterator_false(): Walks over a traversable list and assumes every element to be false |
- | bool $collect = true | + | |
- | ) | + | |
- | </ | + | |
- | Iterating over a list of objects, call method " | ||
- | <code php> | ||
- | $result = spl_iterator_element_call($list, | ||
- | </ | ||
- | |||
- | Iterating over a list of objects, call methods " | ||
- | <code php> | ||
- | $result = spl_iterator_element_call($list, | ||
- | </ | ||
- | |||
- | Iterating over a list of objects, call method ' | ||
- | <code php> | ||
- | $result = spl_iterator_element_call($list, | ||
- | </ | ||
- | |||
- | === spl_iterator_element_call_conditional() === | ||
- | <code php> | ||
- | array|mixed spl_iterator_element_call_conditional( | ||
- | array|Iterator $iterator, | ||
- | string|array $methods, | ||
- | string|array $conditions, | ||
- | array $params = array(), | ||
- | array $condition_params = array(), | ||
- | bool $collect = true, | ||
- | bool $finite = true | ||
- | ) | ||
- | </ |
rfc/functional-elements.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1