MCPcopy Index your code
hub / github.com/dataease/SQLBot / concatFactory

Function concatFactory

frontend/public/swagger-ui-bundle.js:3425–3458  ·  view source on GitHub ↗
(s, o)

Source from the content-addressed store, hash-verified

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 (

Callers 1

Calls 11

isKeyedFunction · 0.85
isIterableFunction · 0.85
KeyedIterableFunction · 0.85
keyedSeqFromValueFunction · 0.85
indexedSeqFromValueFunction · 0.85
isIndexedFunction · 0.85
concatMethod · 0.80
filterMethod · 0.45
mapMethod · 0.45
isArrayMethod · 0.45
reduceMethod · 0.45

Tested by

no test coverage detected