natario1
07/31/2022, 3:02 PMfun hello(who: String) = "Hello, $who!" as a IrSimpleFunction.
I need to pass this to a fun process(function: (String) -> String), but I’m confused as to how to pass my function as a value argument to another.
To be clear, in source code I’d do process(::hello) or process { hello(it) }.shikasd
08/01/2022, 11:52 AMIrFunctionReference, which backs up ::hello syntax iircTóth István Zoltán
08/03/2022, 1:50 AMIrModuleFragment.dump() how the IR looks like. From there it is usually easy to find the IR calls to build the given part.natario1
08/03/2022, 9:18 AMir* functions in declaration builder, or ir factory. For some reason function references are not advertised there though