diff options
Diffstat (limited to 'monads-api.html')
-rw-r--r-- | monads-api.html | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/monads-api.html b/monads-api.html index b68bb52e..ac9a7f27 100644 --- a/monads-api.html +++ b/monads-api.html @@ -173,7 +173,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/richhickey/clojure-contrib/blob/78ee9b3e64c5ac6082fb223fc79292175e8e4f0c/src/main/clojure/clojure/contrib/monads.clj#L456" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -185,7 +185,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/richhickey/clojure-contrib/blob/78ee9b3e64c5ac6082fb223fc79292175e8e4f0c/src/main/clojure/clojure/contrib/monads.clj#L440" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -199,7 +199,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/richhickey/clojure-contrib/blob/78ee9b3e64c5ac6082fb223fc79292175e8e4f0c/src/main/clojure/clojure/contrib/monads.clj#L51" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -212,7 +212,7 @@ m-result (required) and m-zero and m-plus (optional).</pre> a with-monad block.</pre> - + <a href="http://github.com/richhickey/clojure-contrib/blob/78ee9b3e64c5ac6082fb223fc79292175e8e4f0c/src/main/clojure/clojure/contrib/monads.clj#L137" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -233,7 +233,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/richhickey/clojure-contrib/blob/78ee9b3e64c5ac6082fb223fc79292175e8e4f0c/src/main/clojure/clojure/contrib/monads.clj#L114" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -245,7 +245,7 @@ bindings that can be used in the following steps.</pre> modify it.</pre> - + <a href="http://github.com/richhickey/clojure-contrib/blob/78ee9b3e64c5ac6082fb223fc79292175e8e4f0c/src/main/clojure/clojure/contrib/monads.clj#L359" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -257,7 +257,7 @@ modify it.</pre> returns the value corresponding to the given key. The state is not modified.</pre> - + <a href="http://github.com/richhickey/clojure-contrib/blob/78ee9b3e64c5ac6082fb223fc79292175e8e4f0c/src/main/clojure/clojure/contrib/monads.clj#L365" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -269,7 +269,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/richhickey/clojure-contrib/blob/78ee9b3e64c5ac6082fb223fc79292175e8e4f0c/src/main/clojure/clojure/contrib/monads.clj#L286" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -282,7 +282,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/richhickey/clojure-contrib/blob/78ee9b3e64c5ac6082fb223fc79292175e8e4f0c/src/main/clojure/clojure/contrib/monads.clj#L217" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -292,7 +292,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/richhickey/clojure-contrib/blob/78ee9b3e64c5ac6082fb223fc79292175e8e4f0c/src/main/clojure/clojure/contrib/monads.clj#L195" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -303,7 +303,7 @@ step as its argument. (m-chain (step1 step2)) is equivalent to monadic value.</pre> - + <a href="http://github.com/richhickey/clojure-contrib/blob/78ee9b3e64c5ac6082fb223fc79292175e8e4f0c/src/main/clojure/clojure/contrib/monads.clj#L189" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -315,7 +315,7 @@ monadic value.</pre> monadic arguments returning a monadic value.</pre> - + <a href="http://github.com/richhickey/clojure-contrib/blob/78ee9b3e64c5ac6082fb223fc79292175e8e4f0c/src/main/clojure/clojure/contrib/monads.clj#L180" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -326,7 +326,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/richhickey/clojure-contrib/blob/78ee9b3e64c5ac6082fb223fc79292175e8e4f0c/src/main/clojure/clojure/contrib/monads.clj#L211" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -337,7 +337,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/richhickey/clojure-contrib/blob/78ee9b3e64c5ac6082fb223fc79292175e8e4f0c/src/main/clojure/clojure/contrib/monads.clj#L228" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -348,7 +348,7 @@ with initial value (m-result val).</pre> basic values contained in them.</pre> - + <a href="http://github.com/richhickey/clojure-contrib/blob/78ee9b3e64c5ac6082fb223fc79292175e8e4f0c/src/main/clojure/clojure/contrib/monads.clj#L200" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -360,7 +360,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/richhickey/clojure-contrib/blob/78ee9b3e64c5ac6082fb223fc79292175e8e4f0c/src/main/clojure/clojure/contrib/monads.clj#L241" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -372,7 +372,7 @@ x for which (p x) is true.</pre> (m-result nil).</pre> - + <a href="http://github.com/richhickey/clojure-contrib/blob/78ee9b3e64c5ac6082fb223fc79292175e8e4f0c/src/main/clojure/clojure/contrib/monads.clj#L253" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -384,7 +384,7 @@ x for which (p x) is true.</pre> (m-result nil).</pre> - + <a href="http://github.com/richhickey/clojure-contrib/blob/78ee9b3e64c5ac6082fb223fc79292175e8e4f0c/src/main/clojure/clojure/contrib/monads.clj#L259" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -396,7 +396,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/richhickey/clojure-contrib/blob/78ee9b3e64c5ac6082fb223fc79292175e8e4f0c/src/main/clojure/clojure/contrib/monads.clj#L296" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -415,7 +415,7 @@ if the base monad m has a definition for m-plus, and :m-plus-from-transformer otherwise.</pre> - + <a href="http://github.com/richhickey/clojure-contrib/blob/78ee9b3e64c5ac6082fb223fc79292175e8e4f0c/src/main/clojure/clojure/contrib/monads.clj#L496" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -428,7 +428,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/richhickey/clojure-contrib/blob/78ee9b3e64c5ac6082fb223fc79292175e8e4f0c/src/main/clojure/clojure/contrib/monads.clj#L36" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -441,7 +441,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/richhickey/clojure-contrib/blob/78ee9b3e64c5ac6082fb223fc79292175e8e4f0c/src/main/clojure/clojure/contrib/monads.clj#L474" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -452,7 +452,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/richhickey/clojure-contrib/blob/78ee9b3e64c5ac6082fb223fc79292175e8e4f0c/src/main/clojure/clojure/contrib/monads.clj#L451" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -464,7 +464,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/richhickey/clojure-contrib/blob/78ee9b3e64c5ac6082fb223fc79292175e8e4f0c/src/main/clojure/clojure/contrib/monads.clj#L309" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -482,7 +482,7 @@ if the base monad m has a definition for m-plus, and :m-plus-from-transformer otherwise.</pre> - + <a href="http://github.com/richhickey/clojure-contrib/blob/78ee9b3e64c5ac6082fb223fc79292175e8e4f0c/src/main/clojure/clojure/contrib/monads.clj#L528" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -493,7 +493,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/richhickey/clojure-contrib/blob/78ee9b3e64c5ac6082fb223fc79292175e8e4f0c/src/main/clojure/clojure/contrib/monads.clj#L323" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -505,7 +505,7 @@ but returning sets of results instead of sequences of results.</pre> returns the previous state.</pre> - + <a href="http://github.com/richhickey/clojure-contrib/blob/78ee9b3e64c5ac6082fb223fc79292175e8e4f0c/src/main/clojure/clojure/contrib/monads.clj#L353" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -517,7 +517,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/richhickey/clojure-contrib/blob/78ee9b3e64c5ac6082fb223fc79292175e8e4f0c/src/main/clojure/clojure/contrib/monads.clj#L383" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -528,7 +528,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/richhickey/clojure-contrib/blob/78ee9b3e64c5ac6082fb223fc79292175e8e4f0c/src/main/clojure/clojure/contrib/monads.clj#L336" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -540,7 +540,7 @@ structure (fn [old-state] [result new-state]).</pre> replaces recursion by a loop.</pre> - + <a href="http://github.com/richhickey/clojure-contrib/blob/78ee9b3e64c5ac6082fb223fc79292175e8e4f0c/src/main/clojure/clojure/contrib/monads.clj#L401" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -552,7 +552,7 @@ replaces recursion by a loop.</pre> computations that have the base monad type as their result.</pre> - + <a href="http://github.com/richhickey/clojure-contrib/blob/78ee9b3e64c5ac6082fb223fc79292175e8e4f0c/src/main/clojure/clojure/contrib/monads.clj#L555" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -564,7 +564,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/richhickey/clojure-contrib/blob/78ee9b3e64c5ac6082fb223fc79292175e8e4f0c/src/main/clojure/clojure/contrib/monads.clj#L347" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -577,7 +577,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/richhickey/clojure-contrib/blob/78ee9b3e64c5ac6082fb223fc79292175e8e4f0c/src/main/clojure/clojure/contrib/monads.clj#L373" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -590,7 +590,7 @@ monad operations by the functions associated with these keywords in the monad definition given by name.</pre> - + <a href="http://github.com/richhickey/clojure-contrib/blob/78ee9b3e64c5ac6082fb223fc79292175e8e4f0c/src/main/clojure/clojure/contrib/monads.clj#L102" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -604,7 +604,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/richhickey/clojure-contrib/blob/78ee9b3e64c5ac6082fb223fc79292175e8e4f0c/src/main/clojure/clojure/contrib/monads.clj#L389" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -618,7 +618,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/richhickey/clojure-contrib/blob/78ee9b3e64c5ac6082fb223fc79292175e8e4f0c/src/main/clojure/clojure/contrib/monads.clj#L413" id="var-source">Source</a> </div> |