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

Function updateOrderedMap

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

Source from the content-addressed store, hash-verified

3074 return Qe || (Qe = makeOrderedMap(emptyMap(), emptyList()))
3075 }
3076 function updateOrderedMap(s, o, i) {
3077 var a,
3078 u,
3079 _ = s._map,
3080 w = s._list,
3081 C = _.get(o),
3082 L = void 0 !== C
3083 if (i === j) {
3084 if (!L) return s
3085 w.size >= x && w.size >= 2 * _.size
3086 ? ((a = (u = w.filter(function (s, o) {
3087 return void 0 !== s && C !== o
3088 }))
3089 .toKeyedSeq()
3090 .map(function (s) {
3091 return s[0]
3092 })
3093 .flip()
3094 .toMap()),
3095 s.__ownerID && (a.__ownerID = u.__ownerID = s.__ownerID))
3096 : ((a = _.remove(o)), (u = C === w.size - 1 ? w.pop() : w.set(C, void 0)))
3097 } else if (L) {
3098 if (i === w.get(C)[1]) return s
3099 ;((a = _), (u = w.set(C, [o, i])))
3100 } else ((a = _.set(o, w.size)), (u = w.set(w.size, [o, i])))
3101 return s.__ownerID
3102 ? ((s.size = a.size), (s._map = a), (s._list = u), (s.__hash = void 0), s)
3103 : makeOrderedMap(a, u)
3104 }
3105 function ToKeyedSequence(s, o) {
3106 ;((this._iter = s), (this._useKeys = o), (this.size = s.size))
3107 }

Callers 1

Calls 6

makeOrderedMapFunction · 0.85
getMethod · 0.65
removeMethod · 0.65
mapMethod · 0.45
filterMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected