$_invoke$vararg method
dynamic
$_invoke$vararg(
- dynamic $AMPERSAND_form$1,
- dynamic $AMPERSAND_env$1,
- dynamic expr$1,
- dynamic clauses$1,
override
Implementation
dc.dynamic $_invoke$vararg(dc.dynamic $AMPERSAND_form$1, dc.dynamic $AMPERSAND_env$1, dc.dynamic expr$1, dc.dynamic clauses$1, ){
late final dc.dynamic g$1;
if((lcoc_core.gensym is dc.Function)){
g$1=(lcoc_core.gensym as dc.Function)();
}else if((lcoc_core.gensym is lcoc_core.IFn$iface)){
g$1=((lcoc_core.gensym as lcoc_core.IFn$iface).$_invoke$0());
}else{
g$1=(lcoc_core.IFn.extensions(lcoc_core.gensym, ).$_invoke$0(lcoc_core.gensym, ));
}
final dc.dynamic steps$1=(lcoc_core.map.$_invoke$2((dc.dynamic p$8653_$1, ){
final dc.dynamic vec$8654_$1=p$8653_$1;
final dc.dynamic test$1=(lcoc_core.nth.$_invoke$3(vec$8654_$1, 0, null, ));
final dc.dynamic step$1=(lcoc_core.nth.$_invoke$3(vec$8654_$1, 1, null, ));
final dc.dynamic arg$2=(lcoc_core.list.$_invoke$1((lcoc_core.symbol.$_invoke$2(null, "if", )), ));
final dc.dynamic arg$1=(lcoc_core.list.$_invoke$1(test$1, ));
final dc.dynamic o7603$1=(lcoc_core.concat.$_invoke$3((lcoc_core.list.$_invoke$1((lcoc_core.symbol.$_invoke$2("cljd.core", "->", )), )), (lcoc_core.list.$_invoke$1(g$1, )), (lcoc_core.list.$_invoke$1(step$1, )), ));
late final dc.dynamic $if_$1;
if((o7603$1 is lcoc_core.ISeqable$iface)){
$if_$1=((o7603$1 as lcoc_core.ISeqable$iface).$_seq$0());
}else{
$if_$1=((lcoc_core.ISeqable.extensions(o7603$1, ) as lcoc_core.ISeqable$ext).$_seq$0(o7603$1, ));
}
final dc.dynamic $1=(lcoc_core.list.$_invoke$1($if_$1, ));
final dc.dynamic o7603$2=(lcoc_core.concat.$_invoke$4(arg$2, arg$1, $1, (lcoc_core.list.$_invoke$1(g$1, )), ));
if((o7603$2 is lcoc_core.ISeqable$iface)){
return ((o7603$2 as lcoc_core.ISeqable$iface).$_seq$0());
}
return ((lcoc_core.ISeqable.extensions(o7603$2, ) as lcoc_core.ISeqable$ext).$_seq$0(o7603$2, ));
}, (lcoc_core.partition.$_invoke$2(2, clauses$1, )), ));
final dc.dynamic arg$3=(lcoc_core.list.$_invoke$1((lcoc_core.symbol.$_invoke$2("cljd.core", "let", )), ));
final dc.dynamic o7603$3=(lcoc_core.concat.$_invoke$3((lcoc_core.list.$_invoke$1(g$1, )), (lcoc_core.list.$_invoke$1(expr$1, )), (lcoc_core.interleave.$_invoke$2((lcoc_core.repeat.$_invoke$1(g$1, )), lcoc_core.butlast(steps$1, ), )), ));
late final dc.dynamic $if_$2;
if((o7603$3 is lcoc_core.ISeqable$iface)){
$if_$2=((o7603$3 as lcoc_core.ISeqable$iface).$_seq$0());
}else{
$if_$2=((lcoc_core.ISeqable.extensions(o7603$3, ) as lcoc_core.ISeqable$ext).$_seq$0(o7603$3, ));
}
final dc.dynamic $2=(lcoc_core.apply.$_invoke$2(lcoc_core.vector, $if_$2, ));
final dc.dynamic $4=(lcoc_core.list.$_invoke$1($2, ));
final dc.dynamic o7603$4=steps$1;
late final dc.dynamic $if_$3;
if((o7603$4 is lcoc_core.ISeqable$iface)){
$if_$3=((o7603$4 as lcoc_core.ISeqable$iface).$_seq$0());
}else{
$if_$3=((lcoc_core.ISeqable.extensions(o7603$4, ) as lcoc_core.ISeqable$ext).$_seq$0(o7603$4, ));
}
late final dc.bool $if_$4;
if((($if_$3!=false)&&($if_$3!=null))){
$if_$4=false;
}else{
$if_$4=true;
}
late final dc.dynamic $if_$5;
if($if_$4){
$if_$5=g$1;
}else{
$if_$5=lcoc_core.last(steps$1, );
}
final dc.dynamic $3=(lcoc_core.list.$_invoke$1($if_$5, ));
final dc.dynamic o7603$5=(lcoc_core.concat.$_invoke$3(arg$3, $4, $3, ));
if((o7603$5 is lcoc_core.ISeqable$iface)){
return ((o7603$5 as lcoc_core.ISeqable$iface).$_seq$0());
}
return ((lcoc_core.ISeqable.extensions(o7603$5, ) as lcoc_core.ISeqable$ext).$_seq$0(o7603$5, ));
}