Slackbot
07/10/2020, 7:42 AMdiesieben07
07/10/2020, 7:45 AM() -> Int
, you can only check for () -> Any?
. To do that you use the normal is
operator:
thing is () -> Any?
Mark
07/10/2020, 7:46 AMthing is () -> Any?
would return true for a class implementing () -> Int
?diesieben07
07/10/2020, 7:46 AM() -> String
Mark
07/10/2020, 7:47 AMdiesieben07
07/10/2020, 8:01 AM