This library is in flux. APIs may change without notice. Generated from source with koruc 0.1.7 on 8/19/2026.

Control

~import std/control

Koru Standard Library: Control Flow

control.kz · 4 tors · ~[comptime]

Koru Standard Library: Control Flow Provides if for zero-overhead conditional branching ARCHITECTURE: if is a pure comptime transform that generates inline Zig code. - if(expr) | then |> ... | else |> ... becomes a literal if/else statement - No function call overhead, full access to outer scope - Uses template_utils.lookupTemplate + interpolate for metaprogramming!

capture

keywordcomptimetransform koru_std/control.kz:229