def deploy_label(env: Str, region: Str) -> Str {
return env + "-" + region
}
print(deploy_label("prod", "us-east-1"))
Lesson 1 / main.vary
Readable code with visible types
Compose a deploy label from typed parts.
Function parameters carry types and the body is short enough to fit on a postcard. No class wrapper is required to run a top-level program, but type information is still visible at every boundary.
vary run main.vary
Expected output
prod-us-east-1