Skip to content

Commit

Permalink
Edit the docstring of loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Kodiologist committed Dec 13, 2024
1 parent f38947f commit e4e643e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hyrule/control.hy
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@
Don't forget to ``(import hyrule [recur])``. The :hy:class:`recur` object holds the arguments for the next call. When the function returns a :hy:class:`recur`, ``loop`` calls it again with the new arguments. Otherwise, ``loop`` ends and the final value is returned. Thus, what would be a nested set of recursive calls becomes a series of calls that are resolved entirely in sequence.
Note that while ``loop`` uses the same syntax as ordinary function definitions for its lambda list, all arguments other than ``#* args`` and ``#* kwargs`` must have a default value, because the function will first be called with no arguments."
Note that while ``loop`` uses the same syntax as ordinary function definitions for its lambda list, all parameters other than ``#* args`` and ``#** kwargs`` must have a default value, because the function will first be called with no arguments."

`(do
(defn ~g!f ~bindings
Expand Down

0 comments on commit e4e643e

Please sign in to comment.