From 1d9cb9b33a406b4df71b44b397020bf399afa921 Mon Sep 17 00:00:00 2001 From: Abel Braaksma Date: Fri, 22 Dec 2023 01:20:29 +0100 Subject: [PATCH 1/4] Better wording for `takeWhile`-like functions --- src/FSharp.Control.TaskSeq/TaskSeq.fsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FSharp.Control.TaskSeq/TaskSeq.fsi b/src/FSharp.Control.TaskSeq/TaskSeq.fsi index 38d05ce..dd1124b 100644 --- a/src/FSharp.Control.TaskSeq/TaskSeq.fsi +++ b/src/FSharp.Control.TaskSeq/TaskSeq.fsi @@ -903,7 +903,7 @@ type TaskSeq = /// /// Returns a task sequence that, when iterated, yields elements of the underlying sequence while the /// given function returns , and then returns no further elements. - /// The first element where the predicate returns is not included in the resulting sequence + /// Stops consuming the source and yielding items as soon as the predicate returns false. /// (see also ). /// If is asynchronous, use . /// @@ -917,7 +917,7 @@ type TaskSeq = /// /// Returns a task sequence that, when iterated, yields elements of the underlying sequence while the /// given asynchronous function returns , and then returns no further elements. - /// The first element where the predicate returns is not included in the resulting sequence + /// Stops consuming the source and yielding items as soon as the predicate returns false. /// (see also ). /// If is synchronous, use . /// From 4dd3dcc4d1ce10e67a531067559c5c660eec849b Mon Sep 17 00:00:00 2001 From: Ruben Bartelink Date: Fri, 22 Dec 2023 12:19:38 +0000 Subject: [PATCH 2/4] Add Dictionary items in dotsettings --- src/FSharp.Control.TaskSeq.sln.DotSettings | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/FSharp.Control.TaskSeq.sln.DotSettings b/src/FSharp.Control.TaskSeq.sln.DotSettings index 85faab5..db4b7e7 100644 --- a/src/FSharp.Control.TaskSeq.sln.DotSettings +++ b/src/FSharp.Control.TaskSeq.sln.DotSettings @@ -6,4 +6,8 @@ True True True + True + True + True + True \ No newline at end of file From 1bf7ed3e62153c2559eee187a19199a56fd24a1a Mon Sep 17 00:00:00 2001 From: Ruben Bartelink Date: Fri, 22 Dec 2023 12:10:23 +0000 Subject: [PATCH 3/4] XML Doc rewording, fixes, improvements --- src/FSharp.Control.TaskSeq/TaskSeq.fsi | 43 +++++++++++++------------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/src/FSharp.Control.TaskSeq/TaskSeq.fsi b/src/FSharp.Control.TaskSeq/TaskSeq.fsi index dd1124b..97aebeb 100644 --- a/src/FSharp.Control.TaskSeq/TaskSeq.fsi +++ b/src/FSharp.Control.TaskSeq/TaskSeq.fsi @@ -547,10 +547,9 @@ type TaskSeq = /// Builds a new task sequence whose elements are the results of applying the /// function to each of the elements of the input task sequence in , passing /// an extra zero-based index argument to the function. - /// The given function will be applied as elements are pulled using async enumerators retrieved from the - /// input task sequence. - /// - /// If is asynchronous, use . + /// The given function will be applied as elements are pulled using the + /// method on async enumerators retrieved from the input task sequence. + /// Does not evaluate the input sequence until requested. /// /// /// A function to transform items from the input task sequence that also access the current index. @@ -578,10 +577,9 @@ type TaskSeq = /// Builds a new task sequence whose elements are the results of applying the asynchronous /// function to each of the elements of the input task sequence in , passing /// an extra zero-based index argument to the function. - /// The given function will be applied as elements are pulled using async enumerators retrieved from the - /// input task sequence. - /// - /// If is synchronous, use . + /// The given function will be applied as elements are pulled using the + /// method on async enumerators retrieved from the input task sequence. + /// Does not evaluate the input sequence until requested. /// /// /// An asynchronous function to transform items from the input task sequence that also access the current index. @@ -959,9 +957,9 @@ type TaskSeq = /// /// Returns a task sequence that, when iterated, skips elements of the underlying sequence while the /// given function returns , and then yields the remaining - /// elements. The first element where the predicate returns is returned, which means that this - /// function will skip 0 or more elements (see also ). - /// If is asynchronous, use . + /// elements. Elements where the predicate returns are propagated, which means that this + /// function may not skip any elements (see also ). + /// If is asynchronous, consider using . /// /// /// A function that evaluates to false when no more items should be skipped. @@ -973,9 +971,9 @@ type TaskSeq = /// /// Returns a task sequence that, when iterated, skips elements of the underlying sequence while the /// given asynchronous function returns , and then yields the - /// remaining elements. The first element where the predicate returns is returned, which - /// means that this function will skip 0 or more elements (see also ). - /// If is synchronous, use . + /// remaining elements. Elements where the predicate returns are propagated, which means that this + /// function may not skip any elements (see also ). + /// If is synchronous, consider using . /// /// /// An asynchronous function that evaluates to false when no more items should be skipped. @@ -986,13 +984,13 @@ type TaskSeq = /// /// Returns a task sequence that, when iterated, skips elements of the underlying sequence until the given - /// function returns , also skips that element - /// and then yields the remaining elements (see also ). This function skips + /// function returns , also skips that element + /// and then yields the remaining elements (see also ). It will thus always skip /// at least one element of a non-empty sequence, or returns the empty task sequence if the input is empty. /// If is asynchronous, use . /// ` /// - /// A function that evaluates to false when no more items should be skipped. + /// A function that evaluates to false for the final item to be skipped. /// The input task sequence. /// The resulting task sequence. /// Thrown when the input task sequence is null. @@ -1000,13 +998,13 @@ type TaskSeq = /// /// Returns a task sequence that, when iterated, skips elements of the underlying sequence until the given - /// function returns , also skips that element - /// and then yields the remaining elements (see also ). This function skips + /// function returns , also skips that element + /// and then yields the remaining elements (see also ). It will thus always skip /// at least one element of a non-empty sequence, or returns the empty task sequence if the input is empty. /// If is synchronous, use . /// /// - /// An asynchronous function that evaluates to false when no more items should be skipped. + /// An asynchronous function that evaluates to false for the final item to be skipped. /// The input task sequence. /// The resulting task sequence. /// Thrown when the input task sequence is null. @@ -1248,6 +1246,9 @@ type TaskSeq = /// /// Applies the function to each element in the task sequence, threading an accumulator + /// argument of type through the computation. If the input function is f and the elements are i0...iN + /// then computes f (... (f s i0)...) iN. + /// If the accumulator function is asynchronous, consider using . /// argument of type through the computation. If the input function is and the elements are /// then computes . /// If the accumulator function is asynchronous, use . @@ -1264,7 +1265,7 @@ type TaskSeq = /// Applies the asynchronous function to each element in the task sequence, threading an accumulator /// argument of type through the computation. If the input function is and the elements are /// then computes . - /// If the accumulator function is synchronous, use . + /// If the accumulator function is synchronous, consider using . /// /// /// A function that updates the state with each element from the sequence. From 79d55ecc41e1743a493501081ea6f3002ec1716a Mon Sep 17 00:00:00 2001 From: Abel Braaksma Date: Fri, 15 Mar 2024 02:47:24 +0100 Subject: [PATCH 4/4] Remove `` in summaries --- src/FSharp.Control.TaskSeq/TaskSeq.fsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FSharp.Control.TaskSeq/TaskSeq.fsi b/src/FSharp.Control.TaskSeq/TaskSeq.fsi index 97aebeb..579b55c 100644 --- a/src/FSharp.Control.TaskSeq/TaskSeq.fsi +++ b/src/FSharp.Control.TaskSeq/TaskSeq.fsi @@ -1246,8 +1246,8 @@ type TaskSeq = /// /// Applies the function to each element in the task sequence, threading an accumulator - /// argument of type through the computation. If the input function is f and the elements are i0...iN - /// then computes f (... (f s i0)...) iN. + /// argument of type through the computation. If the input function is and the elements are + /// then computes. /// If the accumulator function is asynchronous, consider using . /// argument of type through the computation. If the input function is and the elements are /// then computes .