Twferrell
06/09/2020, 4:52 PMZach Klippenstein (he/him) [MOD]
06/09/2020, 4:59 PMkeyedFunctions
map should have the type Map<String, CalcContext.() -> Unit>
. Might be helpful to define a typealias for that function type.Twferrell
06/09/2020, 5:07 PMTwferrell
06/09/2020, 5:08 PMTwferrell
06/09/2020, 5:09 PMTwferrell
06/09/2020, 5:09 PMTwferrell
06/09/2020, 5:10 PMTwferrell
06/09/2020, 5:11 PMZach Klippenstein (he/him) [MOD]
06/09/2020, 5:21 PMvalidation
method?Zach Klippenstein (he/him) [MOD]
06/09/2020, 5:23 PMAny.() -> Unit
), and then you need to cast your callback
arguments to that type when storing them in the map. Does that work?Twferrell
06/09/2020, 5:23 PMTwferrell
06/09/2020, 5:23 PMTwferrell
06/09/2020, 5:24 PMTwferrell
06/09/2020, 5:37 PMTwferrell
06/09/2020, 5:38 PMTwferrell
06/09/2020, 5:38 PM