Irene Dea
01/25/2022, 6:10 PMfun f() { if(rand() > 1) println("a") else println("b") }
, I'd like to make a copy with the if replaced: fun f_copy() { ifFunction(cond ={ rand() > 1}, b1 = { println("a") }, b2={ println("b") }) }
. Would KSP be able to do this?Ting-Yuan Huang
01/25/2022, 8:19 PM