From fc89c47a13a7dc90f132ee69cf0b17917e3fbb35 Mon Sep 17 00:00:00 2001 From: Michael Fogleman Date: Mon, 11 Sep 2017 11:43:12 -0400 Subject: [PATCH] Document pred= and co. --- List-of-Navigators.md | 65 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/List-of-Navigators.md b/List-of-Navigators.md index b9f59a6..32dd033 100644 --- a/List-of-Navigators.md +++ b/List-of-Navigators.md @@ -743,6 +743,71 @@ See also [must](#must). [0 2 4 6 8] ``` +## pred= + +`(pred= value)` + +Keeps elements only if they equal the provided value. + +See also [pred](#pred). + +```clojure +=> (select [ALL (pred= 2)] [1 2 2 3 4 0]) +[2 2] +``` + +## pred< + +`(pred< value)` + +Keeps elements only if they are less than the provided value. + +```clojure +=> (select [ALL (pred< 3)] [1 2 2 3 4 0]) +[1 2 2 0] +``` + +See also [pred](#pred). + +## pred> + +`(pred> value)` + +Keeps elements only if they are greater than the provided value. + +```clojure +=> (select [ALL (pred> 3)] [1 2 2 3 4 0]) +[4] +``` + +See also [pred](#pred). + +## pred<= + +`(pred<= value)` + +Keeps elements only if they are less than the provided value. + +```clojure +=> (select [ALL (pred<= 3)] [1 2 2 3 4 0]) +[1 2 2 3 0] +``` + +See also [pred](#pred). + +## pred>= + +`(pred>= value)` + +Keeps elements only if they are greater than the provided value. + +```clojure +=> (select [ALL (pred>= 3)] [1 2 2 3 4 0]) +[3 4] +``` + +See also [pred](#pred). + ## putval `(putval val)`