Created
October 9, 2018 21:15
-
-
Save stasimus/7590ad3c1270e0a11fb223a850e13967 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
assertNull(concat3(p1, p2)) | |
/* Welcome to primitive lambda calculus or http://callbackhell.com/ */ | |
fun concat3(arg1: String?, arg2: String?): String? { | |
return arg1?.let { a1 -> arg2?.let { a2 -> a1 + a2 } } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment