tree_seq function

dynamic tree_seq(
  1. dynamic branch$QMARK_$1,
  2. dynamic children$1,
  3. dynamic root$1
)

Implementation

dc.dynamic tree_seq(dc.dynamic branch$QMARK_$1, dc.dynamic children$1, dc.dynamic root$1, ){
lcoc_core.LazySeq walk$1(dc.dynamic node$1, ){
return lcoc_core.LazySeq(null, ((){
late final dc.dynamic $if_$4;
if((branch$QMARK_$1 is dc.Function)){
$if_$4=(branch$QMARK_$1 as dc.Function)(node$1, );
}else if((branch$QMARK_$1 is lcoc_core.IFn$iface)){
$if_$4=((branch$QMARK_$1 as lcoc_core.IFn$iface).$_invoke$1(node$1, ));
}else{
$if_$4=(lcoc_core.IFn.extensions(branch$QMARK_$1, ).$_invoke$1(branch$QMARK_$1, node$1, ));
}
late final dc.dynamic $if_$6;
if((($if_$4!=false)&&($if_$4!=null))){
late final dc.dynamic $if_$5;
if((children$1 is dc.Function)){
$if_$5=(children$1 as dc.Function)(node$1, );
}else if((children$1 is lcoc_core.IFn$iface)){
$if_$5=((children$1 as lcoc_core.IFn$iface).$_invoke$1(node$1, ));
}else{
$if_$5=(lcoc_core.IFn.extensions(children$1, ).$_invoke$1(children$1, node$1, ));
}
$if_$6=(lcoc_core.mapcat.$_invoke$2(walk$1, $if_$5, ));
}else{
$if_$6=null;
}
return lcoc_core.cons(node$1, $if_$6, );
} as dc.dynamic?), null, -1, );
}
final lcoc_core.LazySeq Function(dc.dynamic, ) walk$2=walk$1;
return walk$2(root$1, );
}