Conversation
The doc claimed "Each element is saved after its initialization" but Seq.init does not cache elements — the initializer function is reapplied on each iteration, same as Seq.initInfinite. Update the description to match actual behavior and add a reference to Seq.cache for users who need cached results. Fixes dotnet#14233
❗ Release notes requiredCaution No release notes found for the changed paths (see table below). Please make sure to add an entry with an informative description of the change as well as link to this pull request, issue and language suggestion if applicable. Release notes for this repository are based on Keep A Changelog format. The following format is recommended for this repository:
If you believe that release notes are not necessary for this PR, please add NO_RELEASE_NOTES label to the pull request. You can open this PR in browser to add release notes: open in github.dev
|
Fixes #14233
The
Seq.initXML doc claimed "Each element is saved after its initialization" but this is incorrect —Seq.initdoes not cache elements. The initializer function is reapplied on each iteration, exactly likeSeq.initInfinite.Changes:
Seq.initInfinite<see>reference toSeq.cachefor users who need cached resultsinitInfinite)