From a06b95c052b4e70fe6fe61f7d90874fb6be00b56 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Sat, 19 Nov 2022 17:23:53 +0100 Subject: add ok->, ok->>, err->, err->> to -> --- mew.svnwiki | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'mew.svnwiki') diff --git a/mew.svnwiki b/mew.svnwiki index 629d11b..e3cabdb 100644 --- a/mew.svnwiki +++ b/mew.svnwiki @@ -44,7 +44,8 @@ SRFI-158 (Generators and Accumulators), {{(chicken irregex)}}, {{(chicken pretty-print)}}}, {{(chicken sort)}}}, -and {{matchable}}. +{{matchable}}, +and {{err}} (see {{err.svnwiki}}). == Definitions, bindings and assignments @@ -540,3 +541,15 @@ Evaluate {{}}. Then, when {{}} is not false, behaves like Like {{->}}/{{->>}} but skips nesting the code if the nested expression is false. + +(-> ... ok-> ...) +(-> ... ok->> ...) + +Like {{->}}/{{->>}} but skips nesting the code if the nested +expression is {{err?}}. + +(-> ... err-> ...) +(-> ... err->> ...) + +Like {{->}}/{{->>}} but skips nesting the code if the nested +expression is {{ok?}}. The unwrapped value is inserted into the nesting. -- cgit 1.4.1