Skip to content

Instantly share code, notes, and snippets.

@stasimus
Created October 9, 2018 21:15
Show Gist options
  • Save stasimus/7590ad3c1270e0a11fb223a850e13967 to your computer and use it in GitHub Desktop.
Save stasimus/7590ad3c1270e0a11fb223a850e13967 to your computer and use it in GitHub Desktop.
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