group_by function

dynamic group_by(
  1. dynamic f$1,
  2. dynamic coll$1
)

Implementation

dc.dynamic group_by(dc.dynamic f$1, dc.dynamic coll$1, ){
final dc.dynamic coll7657$1=coll$1;
dc.dynamic f7658$1(dc.dynamic ret$1, dc.dynamic x$1, ){
late final dc.dynamic k$1;
if((f$1 is dc.Function)){
k$1=(f$1 as dc.Function)(x$1, );
}else if((f$1 is lcoc_core.IFn$iface)){
k$1=((f$1 as lcoc_core.IFn$iface).$_invoke$1(x$1, ));
}else{
k$1=(lcoc_core.IFn.extensions(f$1, ).$_invoke$1(f$1, x$1, ));
}
final dc.dynamic coll7642$1=(lcoc_core.$get_.$_invoke$3(ret$1, k$1, lcoc_core.$_EMPTY_VECTOR, ));
final dc.dynamic o7643$1=x$1;
late final dc.dynamic $if_$1;
if((coll7642$1 is lcoc_core.ICollection$iface)){
$if_$1=((coll7642$1 as lcoc_core.ICollection$iface).$_conj$1(o7643$1, ));
}else{
$if_$1=((lcoc_core.ICollection.extensions(coll7642$1, ) as lcoc_core.ICollection$ext).$_conj$1(coll7642$1, o7643$1, ));
}
return (lcoc_core.assoc$BANG_.$_invoke$3(ret$1, k$1, $if_$1, ));
}
final dc.dynamic start7659$1=lcoc_core.transient(lcoc_core.$_EMPTY_MAP, );
late final dc.dynamic $if_$2;
if((coll7657$1 is lcoc_core.IReduce$iface)){
$if_$2=((coll7657$1 as lcoc_core.IReduce$iface).$_reduce$2(f7658$1, start7659$1, ));
}else{
$if_$2=((lcoc_core.IReduce.extensions(coll7657$1, ) as lcoc_core.IReduce$ext).$_reduce$2(coll7657$1, f7658$1, start7659$1, ));
}
return lcoc_core.persistent$BANG_($if_$2, );
}