Merge pull request #2 from digitalvectorz/digitalvectorz-patch-yield
Update api.rst
This commit is contained in:
commit
38aa61cfa8
@ -1502,7 +1502,7 @@ infinite series without consuming infinite amount of memory.
|
|||||||
.. code-block:: clj
|
.. code-block:: clj
|
||||||
|
|
||||||
=> (defn multiply [bases coefficients]
|
=> (defn multiply [bases coefficients]
|
||||||
... (for [[(, base coefficient) (zip bases coefficients)]]
|
... (for [(, base coefficient) (zip bases coefficients)]
|
||||||
... (yield (* base coefficient))))
|
... (yield (* base coefficient))))
|
||||||
|
|
||||||
=> (multiply (range 5) (range 5))
|
=> (multiply (range 5) (range 5))
|
||||||
|
Loading…
Reference in New Issue
Block a user