(s)
| 4082 | return rt || (rt = makeSet(emptyMap())) |
| 4083 | } |
| 4084 | function OrderedSet(s) { |
| 4085 | return null == s |
| 4086 | ? emptyOrderedSet() |
| 4087 | : isOrderedSet(s) |
| 4088 | ? s |
| 4089 | : emptyOrderedSet().withMutations(function (o) { |
| 4090 | var i = SetIterable(s) |
| 4091 | ;(assertNotInfinite(i.size), |
| 4092 | i.forEach(function (s) { |
| 4093 | return o.add(s) |
| 4094 | })) |
| 4095 | }) |
| 4096 | } |
| 4097 | function isOrderedSet(s) { |
| 4098 | return isSet(s) && isOrdered(s) |
| 4099 | } |
no test coverage detected