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

Function countByFactory

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

Source from the content-addressed store, hash-verified

3271 )
3272 }
3273 function countByFactory(s, o, i) {
3274 var a = Map().asMutable()
3275 return (
3276 s.__iterate(function (u, _) {
3277 a.update(o.call(i, u, _, s), 0, function (s) {
3278 return s + 1
3279 })
3280 }),
3281 a.asImmutable()
3282 )
3283 }
3284 function groupByFactory(s, o, i) {
3285 var a = isKeyed(s),
3286 u = (isOrdered(s) ? OrderedMap() : Map()).asMutable()

Callers 1

Calls 1

MapFunction · 0.85

Tested by

no test coverage detected