update_keys function
dynamic
update_keys(
- dynamic m$1,
- dynamic f$1
Implementation
dc.dynamic update_keys(dc.dynamic m$1, dc.dynamic f$1, ){
final dc.dynamic ret$1=lcoc_core.persistent$BANG_(lcoc_core.reduce_kv((dc.dynamic acc$1, dc.dynamic k$1, dc.dynamic v$1, ){
late final dc.dynamic $if_$1;
if((f$1 is dc.Function)){
$if_$1=(f$1 as dc.Function)(k$1, );
}else if((f$1 is lcoc_core.IFn$iface)){
$if_$1=((f$1 as lcoc_core.IFn$iface).$_invoke$1(k$1, ));
}else{
$if_$1=(lcoc_core.IFn.extensions(f$1, ).$_invoke$1(f$1, k$1, ));
}
return (lcoc_core.assoc$BANG_.$_invoke$3(acc$1, $if_$1, v$1, ));
}, lcoc_core.transient(lcoc_core.$_EMPTY_MAP, ), m$1, ), );
final dc.dynamic o7807$1=m$1;
late final dc.dynamic $if_$2;
if((o7807$1 is lcoc_core.IMeta$iface)){
$if_$2=((o7807$1 as lcoc_core.IMeta$iface).$_meta$0());
}else{
$if_$2=((lcoc_core.IMeta.extensions(o7807$1, ) as lcoc_core.IMeta$ext).$_meta$0(o7807$1, ));
}
return lcoc_core.with_meta(ret$1, $if_$2, );
}