Kevin
02/08/2019, 11:13 PMvalidator: ValidationContext.(String?) -> ValidationMessage?
So I think I need to provide a function that takes in a ValidationContext
and gives out a ValidationMessage
, but what is up with the .(String?)
. I don’t understand what the signature of my function should be.kevinmost
02/08/2019, 11:20 PMvalidator
variable is "A lambda where ValidationContext
is the receiver, with one parameter of type String?
(nullable string), returning a `ValidationMessage?`"Kevin
02/08/2019, 11:22 PMfun ValidationContext.myValidator(myString: String?): ValidationMessage?
?karelpeeters
02/10/2019, 11:29 AM::myValidator