Expression icon indicating copy to clipboard operation
Expression copied to clipboard

Other F# default Seq functions

Open lucasteles opened this issue 3 years ago • 2 comments

The BCL F# Seq module has some other really helpful functions, do you have plans to implement them? need help/accept PR?

average
averageBy
cache
countBy
distinct
distinctBy
exactlyOne
exists
exists2
forall
forall2
groupBy
iteri
last
maxBy
minBy
nth
pairwise
pick
reduce
skipWhile
sort
sortBy
takeWhile
truncate
tryFind
tryFindIndex
tryPick
windowed
zip3

lucasteles avatar Jun 16 '22 16:06 lucasteles

Yes, would love a PR on this. Note that the code should be using curry or curry_flipped style functions instead of the nested (function returning) functions. See here for an example: https://github.com/cognitedata/Expression/blob/main/expression/collections/block.py#L669

dbrattli avatar Jun 17 '22 09:06 dbrattli

Note: curry_flipped got renamed into curry_flip

https://github.com/cognitedata/Expression/pull/87

ShalokShalom avatar Jul 26 '22 23:07 ShalokShalom