Closed abelbraaksma closed 5 months ago
Part of the push for good coverage of surface area functions, see #208 for an overview. This implements insertAt, updateAt, removeAt, insertManyAt, removeManyAt and maxByAsync.
insertAt
updateAt
removeAt
insertManyAt
removeManyAt
maxByAsync
We won't be implementing updateManyAt unless there's a strong use case. We skip it for the same reasons it was skipped in FSharp.Core for Seq: https://github.com/fsharp/fslang-suggestions/issues/1047#issuecomment-894227703.
updateManyAt
Seq
Each of these behave exactly like their Seq counterparts:
null
As before, the xml doc blibs have been taken from seq.fs and modified a bit for readability and applicability to TaskSeq.
seq.fs
TaskSeq
The signatures are as follows:
static member insertAt: index: int -> value: 'T -> source: TaskSeq<'T> -> TaskSeq<'T> static member insertManyAt: index: int -> values: TaskSeq<'T> -> source: TaskSeq<'T> -> TaskSeq<'T> static member removeAt: index: int -> source: TaskSeq<'T> -> TaskSeq<'T> static member removeManyAt: index: int -> count: int -> source: TaskSeq<'T> -> TaskSeq<'T> static member updateAt: index: int -> value: 'T -> source: TaskSeq<'T> -> TaskSeq<'T>
TODO list:
TaskSeq.insertAt
TaskSeq.insertManyAt
TaskSeq.removeAt
TaskSeq.removeManyAt
TaskSeq.updateAt
This is ready. Now all that's left is forall and the release notes, and then we can publish the new version finally.
forall
Part of the push for good coverage of surface area functions, see #208 for an overview. This implements
insertAt
,updateAt
,removeAt
,insertManyAt
,removeManyAt
andmaxByAsync
.We won't be implementing
updateManyAt
unless there's a strong use case. We skip it for the same reasons it was skipped in FSharp.Core forSeq
: https://github.com/fsharp/fslang-suggestions/issues/1047#issuecomment-894227703.Each of these behave exactly like their
Seq
counterparts:null
inputAs before, the xml doc blibs have been taken from
seq.fs
and modified a bit for readability and applicability toTaskSeq
.The signatures are as follows:
TODO list:
TaskSeq.insertAt
TaskSeq.insertManyAt
TaskSeq.removeAt
TaskSeq.removeManyAt
TaskSeq.updateAt