immutable-js-oss/immutable-js

zipAll is missing in OrderedSet

Opened this issue · 1 comments

From @absassi on Mon, 30 Sep 2019 15:18:23 GMT

What happened

zipAll is not available for OrderedSet, but it is documented at https://immutable-js.github.io/immutable-js/docs/#/OrderedSet/zipAll

How to reproduce

import { OrderedSet } from 'immutable'
OrderedSet().zipAll(OrderedSet())

The above code throws TypeError: OrderedSet(...).zipAll is not a function.

Other collections documented to support zipAll work as expected, so workarounds like the following are available:

OrderedSet().valueSeq().zipAll(OrderedSet())
OrderedSet().toList().zipAll(OrderedSet())

Copied from original issue: immutable-js#1738

I have provided maybe a simple/naive fix in #216

I'm just hoping to bring attention to it as I wanted to explore the codebase and get your suggestions first.