$_invoke$2 method

dynamic $_invoke$2(
  1. dynamic smap$2,
  2. dynamic coll$1
)
override

Implementation

dc.dynamic $_invoke$2(dc.dynamic smap$2, dc.dynamic coll$1, ){
if(lcoc_core.vector$QMARK_(coll$1, )){
final dc.dynamic coll7677$1=coll$1;
late final dc.int cast$1;
if((coll7677$1 is lcoc_core.ICounted$iface)){
cast$1=(((coll7677$1 as lcoc_core.ICounted$iface).$_count$0()) as dc.int);
}else{
cast$1=(((lcoc_core.ICounted.extensions(coll7677$1, ) as lcoc_core.ICounted$ext).$_count$0(coll7677$1, )) as dc.int);
}
final dc.dynamic coll7657$1=(lcoc_core.range.$_invoke$1(cast$1, ));
dc.dynamic f7658$1(dc.dynamic v$1, dc.dynamic i$1, ){
final dc.dynamic? temp$7490_$AUTO_$2=lcoc_core.find(smap$2, (lcoc_core.nth.$_invoke$2(v$1, i$1, )), );
if((temp$7490_$AUTO_$2!=null)){
final dc.dynamic? e$2=temp$7490_$AUTO_$2;
final dc.dynamic coll7725$1=v$1;
final dc.dynamic k7726$1=i$1;
final dc.dynamic v7727$1=lcoc_core.val(e$2, );
if((coll7725$1 is lcoc_core.IAssociative$iface)){
return ((coll7725$1 as lcoc_core.IAssociative$iface).$_assoc$2(k7726$1, v7727$1, ));
}
return ((lcoc_core.IAssociative.extensions(coll7725$1, ) as lcoc_core.IAssociative$ext).$_assoc$2(coll7725$1, k7726$1, v7727$1, ));
}
return v$1;
}
final dc.dynamic start7659$1=coll$1;
if((coll7657$1 is lcoc_core.IReduce$iface)){
return ((coll7657$1 as lcoc_core.IReduce$iface).$_reduce$2(f7658$1, start7659$1, ));
}
return ((lcoc_core.IReduce.extensions(coll7657$1, ) as lcoc_core.IReduce$ext).$_reduce$2(coll7657$1, f7658$1, start7659$1, ));
}
return (lcoc_core.map.$_invoke$2((dc.dynamic p1$9067_$SHARP_$1, ){
final dc.dynamic? temp$7490_$AUTO_$3=lcoc_core.find(smap$2, p1$9067_$SHARP_$1, );
if((temp$7490_$AUTO_$3!=null)){
final dc.dynamic? e$3=temp$7490_$AUTO_$3;
return lcoc_core.val(e$3, );
}
return p1$9067_$SHARP_$1;
}, coll$1, ));
}