aboutsummaryrefslogtreecommitdiff
path: root/src/content/chapter1_functions/lesson00_functions/code.gleam
blob: 220e58d8914ffac8eaf5d7e4a93cc9b557b9e1f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import gleam/io

pub fn main() {
  io.debug(double(10))
}

fn double(a: Int) -> Int {
  multiply(a, 2)
}

fn multiply(a: Int, b: Int) -> Int {
  a * b
}