(s, o)
| 3423 | ) |
| 3424 | } |
| 3425 | function concatFactory(s, o) { |
| 3426 | var i = isKeyed(s), |
| 3427 | a = [s] |
| 3428 | .concat(o) |
| 3429 | .map(function (s) { |
| 3430 | return ( |
| 3431 | isIterable(s) |
| 3432 | ? i && (s = KeyedIterable(s)) |
| 3433 | : (s = i |
| 3434 | ? keyedSeqFromValue(s) |
| 3435 | : indexedSeqFromValue(Array.isArray(s) ? s : [s])), |
| 3436 | s |
| 3437 | ) |
| 3438 | }) |
| 3439 | .filter(function (s) { |
| 3440 | return 0 !== s.size |
| 3441 | }) |
| 3442 | if (0 === a.length) return s |
| 3443 | if (1 === a.length) { |
| 3444 | var u = a[0] |
| 3445 | if (u === s || (i && isKeyed(u)) || (isIndexed(s) && isIndexed(u))) return u |
| 3446 | } |
| 3447 | var _ = new ArraySeq(a) |
| 3448 | return ( |
| 3449 | i ? (_ = _.toKeyedSeq()) : isIndexed(s) || (_ = _.toSetSeq()), |
| 3450 | ((_ = _.flatten(!0)).size = a.reduce(function (s, o) { |
| 3451 | if (void 0 !== s) { |
| 3452 | var i = o.size |
| 3453 | if (void 0 !== i) return s + i |
| 3454 | } |
| 3455 | }, 0)), |
| 3456 | _ |
| 3457 | ) |
| 3458 | } |
| 3459 | function flattenFactory(s, o, i) { |
| 3460 | var a = makeSequence(s) |
| 3461 | return ( |
no test coverage detected