$_map_lit function

PersistentHashMap $_map_lit(
  1. dynamic kvs$1
)

Implementation

lcoc_core.PersistentHashMap $_map_lit(dc.dynamic kvs$1, ){
if((null==kvs$1)){
return lcoc_core.$_EMPTY_MAP;
}
final dc.List kvs$2=(kvs$1 as dc.List);
final lcoc_core.PersistentHashMap coll7863$1=lcoc_core.$_EMPTY_MAP;
lcoc_core.TransientHashMap tm$1;
if((coll7863$1 is lcoc_core.IEditableCollection$iface)){
tm$1=(((coll7863$1 as lcoc_core.IEditableCollection$iface).$_as_transient$0()) as lcoc_core.TransientHashMap);
}else{
tm$1=(((lcoc_core.IEditableCollection.extensions(coll7863$1, ) as lcoc_core.IEditableCollection$ext).$_as_transient$0(coll7863$1, )) as lcoc_core.TransientHashMap);
}
dc.int i$1=0;
do {
if((i$1<kvs$2.length)){
final lcoc_core.TransientHashMap tcoll7735$1=tm$1;
final dc.dynamic key7736$1=(kvs$2[i$1]);
final dc.dynamic val7737$1=(kvs$2[(i$1+1)]);
if((tcoll7735$1 is lcoc_core.ITransientAssociative$iface)){
tm$1=((tcoll7735$1 as lcoc_core.ITransientAssociative$iface).$_assoc$BANG_$2(key7736$1, val7737$1, ));
}else{
tm$1=((lcoc_core.ITransientAssociative.extensions(tcoll7735$1, ) as lcoc_core.ITransientAssociative$ext).$_assoc$BANG_$2(tcoll7735$1, key7736$1, val7737$1, ));
}
i$1=(i$1+2);
continue;
}
final lcoc_core.TransientHashMap tcoll7874$1=tm$1;
if((tcoll7874$1 is lcoc_core.ITransientCollection$iface)){
return (((tcoll7874$1 as lcoc_core.ITransientCollection$iface).$_persistent$BANG_$0()) as lcoc_core.PersistentHashMap);
}
return (((lcoc_core.ITransientCollection.extensions(tcoll7874$1, ) as lcoc_core.ITransientCollection$ext).$_persistent$BANG_$0(tcoll7874$1, )) as lcoc_core.PersistentHashMap);
} while(true);
}