diff options
Diffstat (limited to 'monads-api.html')
-rw-r--r-- | monads-api.html | 75 |
1 files changed, 36 insertions, 39 deletions
diff --git a/monads-api.html b/monads-api.html index 42ddbe2f..4016a4a6 100644 --- a/monads-api.html +++ b/monads-api.html @@ -6,9 +6,6 @@ <link media="all" type="text/css" href="static/clojure.css" rel="stylesheet" /> <link media="all" type="text/css" href="static/wiki.css" rel="stylesheet" /> <link media="all" type="text/css" href="static/internal.css" rel="stylesheet" /> - <!-- TODO: are we using these (from clojure.org)? If so, add the files --> - <script src="file/view/code_highlighter.js" type="text/javascript"></script> - <script src="file/view/clojure.js" type="text/javascript"></script> <style>.menuWrapper{height: 36px;}</style> <!--[if lte IE 6]> <link rel="stylesheet" href="http://www.wikispaces.com/_/2009051601/s/internal_ie.css" type="text/css" /> @@ -175,7 +172,7 @@ return a continuation (which becomes the return value of call-cc), or call the passed-in current continuation to terminate.</pre> - <a href="http://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L456" id="var-source">Source</a> + <a href="https://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L456" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -187,7 +184,7 @@ values are functions that are called with a single argument representing the continuation of the computation, to which they pass their result.</pre> - <a href="http://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L440" id="var-source">Source</a> + <a href="https://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L440" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -201,7 +198,7 @@ are written like bindings to the monad operations m-bind and m-result (required) and m-zero and m-plus (optional).</pre> - <a href="http://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L51" id="var-source">Source</a> + <a href="https://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L51" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -214,7 +211,7 @@ m-result (required) and m-zero and m-plus (optional).</pre> a with-monad block.</pre> - <a href="http://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L137" id="var-source">Source</a> + <a href="https://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L137" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -235,7 +232,7 @@ are given as a vector as for the use in let, establishes additional bindings that can be used in the following steps.</pre> - <a href="http://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L114" id="var-source">Source</a> + <a href="https://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L114" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -247,7 +244,7 @@ bindings that can be used in the following steps.</pre> modify it.</pre> - <a href="http://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L359" id="var-source">Source</a> + <a href="https://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L359" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -259,7 +256,7 @@ modify it.</pre> returns the value corresponding to the given key. The state is not modified.</pre> - <a href="http://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L365" id="var-source">Source</a> + <a href="https://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L365" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -271,7 +268,7 @@ at all. It is useful for testing, for combination with monad transformers, and for code that is parameterized with a monad.</pre> - <a href="http://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L286" id="var-source">Source</a> + <a href="https://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L286" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -284,7 +281,7 @@ step as its argument. (m-chain (step1 step2)) is equivalent to (fn [x] (domonad [r1 (step1 x) r2 (step2 r1)] r2)).</pre> - <a href="http://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L217" id="var-source">Source</a> + <a href="https://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L217" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -294,7 +291,7 @@ step as its argument. (m-chain (step1 step2)) is equivalent to <pre id="var-docstr">Bind the monadic value m to the function returning (f x) for argument x</pre> - <a href="http://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L195" id="var-source">Source</a> + <a href="https://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L195" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -305,7 +302,7 @@ step as its argument. (m-chain (step1 step2)) is equivalent to monadic value.</pre> - <a href="http://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L189" id="var-source">Source</a> + <a href="https://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L189" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -317,7 +314,7 @@ monadic value.</pre> monadic arguments returning a monadic value.</pre> - <a href="http://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L180" id="var-source">Source</a> + <a href="https://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L180" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -328,7 +325,7 @@ monadic arguments returning a monadic value.</pre> f onto the values xs. f must return a monadic value.</pre> - <a href="http://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L211" id="var-source">Source</a> + <a href="https://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L211" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -339,7 +336,7 @@ f onto the values xs. f must return a monadic value.</pre> with initial value (m-result val).</pre> - <a href="http://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L228" id="var-source">Source</a> + <a href="https://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L228" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -350,7 +347,7 @@ with initial value (m-result val).</pre> basic values contained in them.</pre> - <a href="http://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L200" id="var-source">Source</a> + <a href="https://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L200" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -362,7 +359,7 @@ monadic computation (f x). Return (m-result x) for the first x for which (p x) is true.</pre> - <a href="http://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L241" id="var-source">Source</a> + <a href="https://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L241" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -374,7 +371,7 @@ x for which (p x) is true.</pre> (m-result nil).</pre> - <a href="http://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L253" id="var-source">Source</a> + <a href="https://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L253" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -386,7 +383,7 @@ x for which (p x) is true.</pre> (m-result nil).</pre> - <a href="http://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L259" id="var-source">Source</a> + <a href="https://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L259" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -398,7 +395,7 @@ represented by nil, any other value is considered valid. As soon as a step returns nil, the whole computation will yield nil as well.</pre> - <a href="http://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L296" id="var-source">Source</a> + <a href="https://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L296" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -417,7 +414,7 @@ if the base monad m has a definition for m-plus, and :m-plus-from-transformer otherwise.</pre> - <a href="http://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L496" id="var-source">Source</a> + <a href="https://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L496" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -430,7 +427,7 @@ are written like bindings to the monad operations m-bind and m-result (required) and m-zero and m-plus (optional).</pre> - <a href="http://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L36" id="var-source">Source</a> + <a href="https://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L36" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -443,7 +440,7 @@ monad. The argument which-m-plus chooses if m-zero and m-plus are taken from the base monad or from the transformer.</pre> - <a href="http://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L474" id="var-source">Source</a> + <a href="https://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L474" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -454,7 +451,7 @@ from the base monad or from the transformer.</pre> <pre id="var-docstr">Execute the computation c in the cont monad and return its result.</pre> - <a href="http://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L451" id="var-source">Source</a> + <a href="https://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L451" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -466,7 +463,7 @@ that can yield multiple values. Any object implementing the seq protocol can be used as a monadic value.</pre> - <a href="http://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L309" id="var-source">Source</a> + <a href="https://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L309" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -484,7 +481,7 @@ if the base monad m has a definition for m-plus, and :m-plus-from-transformer otherwise.</pre> - <a href="http://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L528" id="var-source">Source</a> + <a href="https://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L528" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -495,7 +492,7 @@ if the base monad m has a definition for m-plus, and but returning sets of results instead of sequences of results.</pre> - <a href="http://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L323" id="var-source">Source</a> + <a href="https://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L323" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -507,7 +504,7 @@ but returning sets of results instead of sequences of results.</pre> returns the previous state.</pre> - <a href="http://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L353" id="var-source">Source</a> + <a href="https://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L353" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -519,7 +516,7 @@ returns the previous state.</pre> replaces the value associated with key by val. The old value is returned.</pre> - <a href="http://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L383" id="var-source">Source</a> + <a href="https://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L383" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -530,7 +527,7 @@ replaces the value associated with key by val. The old value is returned.</pre> structure (fn [old-state] [result new-state]).</pre> - <a href="http://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L336" id="var-source">Source</a> + <a href="https://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L336" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -542,7 +539,7 @@ structure (fn [old-state] [result new-state]).</pre> replaces recursion by a loop.</pre> - <a href="http://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L401" id="var-source">Source</a> + <a href="https://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L401" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -554,7 +551,7 @@ replaces recursion by a loop.</pre> computations that have the base monad type as their result.</pre> - <a href="http://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L555" id="var-source">Source</a> + <a href="https://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L555" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -566,7 +563,7 @@ computations that have the base monad type as their result.</pre> result of f applied to the current state and that returns the old state.</pre> - <a href="http://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L347" id="var-source">Source</a> + <a href="https://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L347" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -579,7 +576,7 @@ replaces the value associated with the given key by the return value of f applied to the old value. The old value is returned.</pre> - <a href="http://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L373" id="var-source">Source</a> + <a href="https://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L373" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -592,7 +589,7 @@ monad operations by the functions associated with these keywords in the monad definition given by name.</pre> - <a href="http://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L102" id="var-source">Source</a> + <a href="https://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L102" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -606,7 +603,7 @@ the map entry corresponding to key. The map entry is updated with the new state returned by statement.</pre> - <a href="http://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L389" id="var-source">Source</a> + <a href="https://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L389" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -620,7 +617,7 @@ accumulators from clojure.contrib.accumulators can be used for storing the log data. Its empty value is passed as a parameter.</pre> - <a href="http://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L413" id="var-source">Source</a> + <a href="https://github.com/clojure/clojure-contrib/blob/b8d2743d3a89e13fc9deb2844ca2167b34aaa9b6/src/main/clojure/clojure/contrib/monads.clj#L413" id="var-source">Source</a> </div> |