From 835eb7e89627eea923bfd57bdacba7065c6b1d4c Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 15 Sep 2024 16:42:42 -0400 Subject: Add optional:or_exit(...) --- test/optionals.tm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test') diff --git a/test/optionals.tm b/test/optionals.tm index ced42274..05008e20 100644 --- a/test/optionals.tm +++ b/test/optionals.tm @@ -89,6 +89,9 @@ func main(): >> (5?):or_fail() = 5 : Int + >> (5?):or_exit() + = 5 : Int + >> (!Int):or_else(-1) = -1 : Int -- cgit v1.2.3