assoc_in function
dynamic
assoc_in(
- dynamic m$1,
- dynamic p$8737_$1,
- dynamic v$1
Implementation
dc.dynamic assoc_in(dc.dynamic m$1, dc.dynamic p$8737_$1, dc.dynamic v$1, ){
final dc.dynamic vec$8738_$1=p$8737_$1;
final dc.dynamic o7603$1=vec$8738_$1;
late final dc.dynamic seq$8739_$1;
if((o7603$1 is lcoc_core.ISeqable$iface)){
seq$8739_$1=((o7603$1 as lcoc_core.ISeqable$iface).$_seq$0());
}else{
seq$8739_$1=((lcoc_core.ISeqable.extensions(o7603$1, ) as lcoc_core.ISeqable$ext).$_seq$0(o7603$1, ));
}
final dc.dynamic first$8740_$1=lcoc_core.first(seq$8739_$1, );
final dc.dynamic seq$8739_$2=lcoc_core.next(seq$8739_$1, );
final dc.dynamic k$1=first$8740_$1;
final dc.dynamic ks$1=seq$8739_$2;
if(((ks$1!=false)&&(ks$1!=null))){
final dc.dynamic coll7725$1=m$1;
final dc.dynamic k7726$1=k$1;
final dc.dynamic v7727$1=lcoc_core.assoc_in((lcoc_core.$get_.$_invoke$2(m$1, k$1, )), ks$1, v$1, );
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, ));
}
final dc.dynamic coll7725$2=m$1;
final dc.dynamic k7726$2=k$1;
final dc.dynamic v7727$2=v$1;
if((coll7725$2 is lcoc_core.IAssociative$iface)){
return ((coll7725$2 as lcoc_core.IAssociative$iface).$_assoc$2(k7726$2, v7727$2, ));
}
return ((lcoc_core.IAssociative.extensions(coll7725$2, ) as lcoc_core.IAssociative$ext).$_assoc$2(coll7725$2, k7726$2, v7727$2, ));
}