Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Guarantee partition predicate evaluation #346

Open
wants to merge 1 commit into
base: live
Choose a base branch
from

Conversation

breyed
Copy link

@breyed breyed commented Nov 4, 2019

One of the design goals of the partition functions that the predicate is evaluated only once (not twice) per item. This should be documented guarantee so that developers can take advantage of it.

A similar guarantee should be added for Array.partition.

One of the [design goals](https://github.com/fsharp/fslang-design/blob/master/FSharp-4.0/ListSeqArrayAdditions.md#regular-functional-operators-producing-two-or-more-output-collections) of the `partition` functions that the predicate is evaluated only once (not twice) per item. This should be documented guarantee so that developers can take advantage of it.
@opbld34
Copy link

opbld34 commented Nov 4, 2019

Docs Build status updates of commit 575ae90:

✅ Validation status: passed

File Status Preview URL Details
docs/conceptual/list.partition['t]-function-[fsharp].md ✅Succeeded

For more details, please refer to the build report.

Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants