summaryrefslogtreecommitdiff
path: root/lib/std/try.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-12-30 19:23:12 -0800
committerOri Bernstein <ori@eigenstate.org>2017-12-30 19:23:12 -0800
commitf4a939a2cfdc00643b02c404b0acbed382964dd0 (patch)
tree107db984a46b56f0803960155dba25977df78aae /lib/std/try.myr
parentb4252aeded2d15592fe940e20f533f113000c61d (diff)
downloadmc-f4a939a2cfdc00643b02c404b0acbed382964dd0.tar.gz
Start cleaning up libstd.
minor formatting, factoring out iterutil.
Diffstat (limited to 'lib/std/try.myr')
-rw-r--r--lib/std/try.myr8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/std/try.myr b/lib/std/try.myr
index c7a1c1f..86c2f74 100644
--- a/lib/std/try.myr
+++ b/lib/std/try.myr
@@ -3,10 +3,10 @@ use "option"
use "fmt"
pkg std =
- generic try : (v : result(@a, @b) -> @a)
- generic tryv : (v : result(@a, @b), d : @a -> @a)
- generic get : (v : option(@a) -> @a)
- generic getv : (v : option(@a), d : @a -> @a)
+ generic try : (v : result(@a, @b) -> @a)
+ generic tryv : (v : result(@a, @b), d : @a -> @a)
+ generic get : (v : option(@a) -> @a)
+ generic getv : (v : option(@a), d : @a -> @a)
generic canget : (o : option(@a) -> bool)
;;