使用otp进程模拟的可变值
gleam推荐以不变性优先,建议只在确实需要可变性时才使用
gleam add variable
import var pub fn main() { use val <- var.scope(5, 1000) // ... }
gleam run # Run the project gleam test # Run the tests