Fundamentals3 / 9
Up next

Functions

const std = @import("std");

fn add(a: i32, b: i32) i32 {
    return a + b;
}

pub fn main() void {
    std.debug.print("{d}\n", .{add(2, 3)});
}
What you're solving

typed parameters and return type