Conclusion

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

In this lesson, you’ve looked at how you can create functions in Kotlin. In the process, you learned:

  • How to create functions.
  • How to specify arguments for functions.
  • How to return values from functions.
  • How every function has an implicit return type of Unit.
  • How to use default arguments to skip certain parameters when invoking functions.
  • How to use named arguments to make function calls more readable.
See forum comments
Download course materials from Github
Previous: Demo Next: Quiz: Use Functions