$_equiv_sequential function
bool
$_equiv_sequential(
- dynamic x$1,
- dynamic y$1
)
Implementation
dc.bool $_equiv_sequential(dc.dynamic x$1, dc.dynamic y$1, ){
final dc.bool or$7508_$AUTO_$1=((lcoc_core.ISequential.satisfies(y$1, )) as dc.bool);
late final dc.bool and$7468_$AUTO_$1;
if(or$7508_$AUTO_$1){
and$7468_$AUTO_$1=or$7508_$AUTO_$1;
}else{
and$7468_$AUTO_$1=(y$1 is dc.List);
}
if(and$7468_$AUTO_$1){
late final dc.bool or$7508_$AUTO_$2;
if(lcoc_core.counted$QMARK_(x$1, )){
or$7508_$AUTO_$2=false;
}else{
or$7508_$AUTO_$2=true;
}
late final dc.bool and$7468_$AUTO_$2;
if(or$7508_$AUTO_$2){
and$7468_$AUTO_$2=or$7508_$AUTO_$2;
}else{
late final dc.bool or$7508_$AUTO_$3;
if(lcoc_core.counted$QMARK_(y$1, )){
or$7508_$AUTO_$3=false;
}else{
or$7508_$AUTO_$3=true;
}
if(or$7508_$AUTO_$3){
and$7468_$AUTO_$2=or$7508_$AUTO_$3;
}else{
final dc.dynamic coll7677$1=x$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 coll7677$2=y$1;
late final dc.int cast$2;
if((coll7677$2 is lcoc_core.ICounted$iface)){
cast$2=(((coll7677$2 as lcoc_core.ICounted$iface).$_count$0()) as dc.int);
}else{
cast$2=(((lcoc_core.ICounted.extensions(coll7677$2, ) as lcoc_core.ICounted$ext).$_count$0(coll7677$2, )) as dc.int);
}
and$7468_$AUTO_$2=(cast$1==cast$2);
}
}
if(and$7468_$AUTO_$2){
final dc.dynamic o7840$1=x$1;
late final dc.dynamic $if_$1;
if((o7840$1 is lcoc_core.IHash$iface)){
$if_$1=((o7840$1 as lcoc_core.IHash$iface).$_hash_realized$QMARK_$0());
}else{
$if_$1=((lcoc_core.IHash.extensions(o7840$1, ) as lcoc_core.IHash$ext).$_hash_realized$QMARK_$0(o7840$1, ));
}
late final dc.bool or$7508_$AUTO_$4;
if((($if_$1!=false)&&($if_$1!=null))){
or$7508_$AUTO_$4=false;
}else{
or$7508_$AUTO_$4=true;
}
late final dc.bool and$7468_$AUTO_$3;
if(or$7508_$AUTO_$4){
and$7468_$AUTO_$3=or$7508_$AUTO_$4;
}else{
final dc.dynamic o7840$2=y$1;
late final dc.dynamic $if_$2;
if((o7840$2 is lcoc_core.IHash$iface)){
$if_$2=((o7840$2 as lcoc_core.IHash$iface).$_hash_realized$QMARK_$0());
}else{
$if_$2=((lcoc_core.IHash.extensions(o7840$2, ) as lcoc_core.IHash$ext).$_hash_realized$QMARK_$0(o7840$2, ));
}
late final dc.bool or$7508_$AUTO_$5;
if((($if_$2!=false)&&($if_$2!=null))){
or$7508_$AUTO_$5=false;
}else{
or$7508_$AUTO_$5=true;
}
if(or$7508_$AUTO_$5){
and$7468_$AUTO_$3=or$7508_$AUTO_$5;
}else{
final dc.dynamic o7835$1=x$1;
late final dc.dynamic $if_$3;
if((o7835$1 is lcoc_core.IHash$iface)){
$if_$3=((o7835$1 as lcoc_core.IHash$iface).$_hash$0());
}else{
$if_$3=((lcoc_core.IHash.extensions(o7835$1, ) as lcoc_core.IHash$ext).$_hash$0(o7835$1, ));
}
final dc.dynamic o7835$2=y$1;
late final dc.dynamic $if_$4;
if((o7835$2 is lcoc_core.IHash$iface)){
$if_$4=((o7835$2 as lcoc_core.IHash$iface).$_hash$0());
}else{
$if_$4=((lcoc_core.IHash.extensions(o7835$2, ) as lcoc_core.IHash$ext).$_hash$0(o7835$2, ));
}
and$7468_$AUTO_$3=($if_$3==$if_$4);
}
}
if(and$7468_$AUTO_$3){
final dc.dynamic o7603$1=x$1;
dc.dynamic xs$1;
if((o7603$1 is lcoc_core.ISeqable$iface)){
xs$1=((o7603$1 as lcoc_core.ISeqable$iface).$_seq$0());
}else{
xs$1=((lcoc_core.ISeqable.extensions(o7603$1, ) as lcoc_core.ISeqable$ext).$_seq$0(o7603$1, ));
}
final dc.dynamic o7603$2=y$1;
dc.dynamic ys$1;
if((o7603$2 is lcoc_core.ISeqable$iface)){
ys$1=((o7603$2 as lcoc_core.ISeqable$iface).$_seq$0());
}else{
ys$1=((lcoc_core.ISeqable.extensions(o7603$2, ) as lcoc_core.ISeqable$ext).$_seq$0(o7603$2, ));
}
do {
if((null==xs$1)){
return (null==ys$1);
}
if((null==ys$1)){
return false;
}
if((lcoc_core.$EQ_.$_invoke$2(lcoc_core.first(xs$1, ), lcoc_core.first(ys$1, ), ))){
xs$1=lcoc_core.next(xs$1, );
ys$1=lcoc_core.next(ys$1, );
continue;
}
return false;
} while(true);
}
return and$7468_$AUTO_$3;
}
return and$7468_$AUTO_$2;
}
return and$7468_$AUTO_$1;
}