compare_indexed function
int
compare_indexed(
- dynamic x$1,
- dynamic y$1
)
Implementation
dc.int compare_indexed(dc.dynamic x$1, dc.dynamic y$1, ){
final dc.dynamic coll7677$1=x$1;
late final dc.dynamic cntx$1;
if((coll7677$1 is lcoc_core.ICounted$iface)){
cntx$1=((coll7677$1 as lcoc_core.ICounted$iface).$_count$0());
}else{
cntx$1=((lcoc_core.ICounted.extensions(coll7677$1, ) as lcoc_core.ICounted$ext).$_count$0(coll7677$1, ));
}
final dc.dynamic coll7677$2=y$1;
late final dc.dynamic cnty$1;
if((coll7677$2 is lcoc_core.ICounted$iface)){
cnty$1=((coll7677$2 as lcoc_core.ICounted$iface).$_count$0());
}else{
cnty$1=((lcoc_core.ICounted.extensions(coll7677$2, ) as lcoc_core.ICounted$ext).$_count$0(coll7677$2, ));
}
if(((cntx$1 as dc.num)<(cnty$1 as dc.num))){
return -1;
}
if(((cnty$1 as dc.num)<(cntx$1 as dc.num))){
return 1;
}
dc.int idx$1=0;
do {
if((idx$1<(cntx$1 as dc.num))){
final dc.dynamic coll7764$1=x$1;
final dc.int n7765$1=idx$1;
late final dc.dynamic $if_$2;
if((coll7764$1 is lcoc_core.IIndexed$iface)){
$if_$2=((coll7764$1 as lcoc_core.IIndexed$iface).$_nth$1(n7765$1, ));
}else{
$if_$2=((lcoc_core.IIndexed.extensions(coll7764$1, ) as lcoc_core.IIndexed$ext).$_nth$1(coll7764$1, n7765$1, ));
}
final dc.dynamic coll7764$2=y$1;
final dc.int n7765$2=idx$1;
late final dc.dynamic $if_$1;
if((coll7764$2 is lcoc_core.IIndexed$iface)){
$if_$1=((coll7764$2 as lcoc_core.IIndexed$iface).$_nth$1(n7765$2, ));
}else{
$if_$1=((lcoc_core.IIndexed.extensions(coll7764$2, ) as lcoc_core.IIndexed$ext).$_nth$1(coll7764$2, n7765$2, ));
}
final dc.int c$1=lcoc_core.compare($if_$2, $if_$1, );
if((0==c$1)){
idx$1=(1+idx$1);
continue;
}
return c$1;
}
return 0;
} while(true);
}