-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revised docs for seq, unfold, from_loop in LazyList (#806)
seq: Revised basic description to fit first part of from_loop doc, which seems clearer. Also added note that you can create an infinite list by passing a function that constantly returns true. from_loop: Gave additional detail about what the next function is supposed to do, and noted that its result pair might contain different types. Added a simple example where the types are the same. (This example could be done more simpy using seq. I still don't understand the purpose of from_loop.) I moved seq before from_loop because it's a more basic version of this kind of operation. from_loop is more specialized, and complicated, but its name might suggest that it's the normal way of making a lazy list by repeated application of a function. Users should see seq first before trying to work out what from_loop is for.
- Loading branch information
Showing
2 changed files
with
28 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters