Skip to main content

iterator_some

Function iterator_some 

Source
pub fn iterator_some(
    it: &mut Interp,
    this: Value,
    a: &[Value],
) -> Result<Value, Value>
Expand description

Iterator.prototype.some(fn)/.every(fn)/.find(fn)(ES2025 Iterator Helpers。 map/filter/take/drop/toArray/forEach/reduce は既に対応済みだったが、 同じ提案に含まれるこの3つが丸ごと未対応だった)。他のヘルパと同じ「残り要素を まとめて処理する即時評価」方式(無限イテレータには非対応の簡略実装)。