Skip to content

Instantly share code, notes, and snippets.

@hhariri
Created July 23, 2014 08:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hhariri/04bcde986cdfc206f388 to your computer and use it in GitHub Desktop.
Save hhariri/04bcde986cdfc206f388 to your computer and use it in GitHub Desktop.
fun plus(number1: Int, number2: Int): Int {
if (zero(number2)) {
return number1
} else {
return (add1(plus(number2, sub1(number1))))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment