---
title: "Discussion on \"Functions in Swift\" | Hashnode"
description: "Discussion on \"Functions in Swift\". The function is a set of commands/statements. To create a simple function, you first have to define and name it; generally, naming is according to the task you want it to perform. For example:\nvar age = 18\nlet name = \"Krishna\"\nprint(\"Hi, I am \" + \"\\(..."
url: "https://hashnode.com/posts/functions-in-swift/627e3bc7cc45a3de295c67a8"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Functions in Swift](https://iosmayank.hashnode.dev/functions-in-swift?utm_source=hashnode&utm_medium=feed)

The function is a set of commands/statements. To create a simple function, you first have to define and name it; generally, naming is according to the task you want it to perform. For example: var age = 18 let name = "Krishna" print("Hi, I am " + "\\(...

May 13, 2022 · 6 min read · iosmayank.hashnode.dev  
Updated Jul 25, 2024  
Read the article

-   [#swift](https://hashnode.com/tag/swift)
-   [#ios](https://hashnode.com/tag/ios)
-   [#ios-app-development](https://hashnode.com/tag/ios-app-development)
-   [#ios-app-developer](https://hashnode.com/tag/ios-app-developer)

## Written by

[Mayank Gupta](https://hashnode.com/@iosmayank)

@iosmayank · India

  
[View profile](https://hashnode.com/@iosmayank)

Founder of swiftanytime.com | Technical Writer | iOS Enthusiast

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
