#61 IteratorUtils: filterEach can use original index or target index

Suljettu
4 vuotta sitten avasi ranides · 1 kommenttia
ranides kommentoitu 4 vuotta sitten

It is open discussion, if function passed to filterEach should receive original index (before filtering) or target index (used in target collection).

filterEach should give possibility to choose between both options and, in best case, give possibility to use both in the same function.

It requires new interface: FilterEachPredicate or something like that.

It is open discussion, if function passed to `filterEach` should receive original index (before filtering) or target index (used in target collection). `filterEach` should give possibility to choose between both options and, in best case, give possibility to use both in the same function. It requires new interface: `FilterEachPredicate` or something like that.
ranides kommentoitu 4 vuotta sitten
Omistaja

sorry, target index is almost useless

sorry, target index is almost useless
Kirjaudu sisään osallistuaksesi tähän keskusteluun.
Ei merkkipaalua
Ei osoitettua
1 osallistujaa
Ladataan...
Peruuta
Tallenna
Sisältöä ei vielä ole.