run-kit 0.7.1

Universal multi-language runner and smart REPL
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Expected output:
// [1] planning build
// [2] compiling kernel
// [3] deploying services

const std = @import("std");

pub fn main() !void {
    const steps = [_][]const u8{
        "planning build",
        "compiling kernel",
        "deploying services",
    };

    for (steps, 0..) |step, index| {
        std.debug.print("[{d}] {s}\n", .{ index + 1, step });
    }
}