Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

with expression

Copying a record while changing a few properties.

A with expression creates a shallow copy of a record or struct with specified properties changed (nondestructive mutation).

Loading interactive…

Examples

  • var moved = home with { City = "Porto" }; copies home with a new city and leaves home alone.

Read the full section →