D (The Programming Language)/d2/Intro to Functions

=Lesson 3: Intro to Functions= In this lesson, you see more of functions, which were used back in Lesson 1. If you are already familiar with another C-like language, you only need to skim this over.

Functions
Functions allow you to write more organized code. With functions, you can write some code once, and then call it whenever you need to use that code.

Function Syntax
Let's take a look at the syntax: