# Functions

DevFeed: [Functions](<https://devfeed.tech/articles/functions-25056.md>)

Original publisher: [Read original article](<https://typealias.com/start/kotlin-functions/>)

Author: author@typealias.com (Dave Leeds)

Published: 2020-04-07T00:00:00Z

Content type: tutorial

Language: en

Sources: [Dave Leeds on Kotlin - typealias.com](<https://devfeed.tech/sources/dave-leeds-on-kotlin-typealias-com.md>)

Topics: [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [argument](<https://devfeed.tech/tags/argument.md>), [code](<https://devfeed.tech/tags/code.md>), [function](<https://devfeed.tech/tags/function.md>), [introduction](<https://devfeed.tech/tags/introduction.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [learn-to-program](<https://devfeed.tech/tags/learn-to-program.md>), [parameter](<https://devfeed.tech/tags/parameter.md>), [programming](<https://devfeed.tech/tags/programming.md>)

## AI overview

A Kotlin tutorial chapter introduces functions as a way to calculate the circumference of circles of different sizes without repeating the same code.

## Source excerpt

In the last chapter, we wrote some Kotlin code to calculate the circumference of individual circles. Once we start calculating the circumference of many circles of different sizes, we can easily end up writing the same code over and over again. In this chapter, we're going to write functions, which will make it easy to calculate the circumference of any circle--without repeating ourselves! Introduction to Functions In the last chapter, we saw that it's easy to calculate the circumference of a circle.