F# 6 added the InlineIfLambda feature.
This is a long-running pre-approved RFC tracking the use of this feature in FSharp.Core.
NOTE: It appears to make sense to just go through FSharp.Core systematically and use it on every inlined function that takes a lambda which is only applied once
NOTE: It is likely
inlinecould be used more widely across FSharp.Core as well
- Array.map
- Array.iter
- Array.minBy
- Array.compareWith
- Resumable code and tasks
NOTE: this list appears adhoc and we should be systematic, hence this RFC
- lock
- Array.init
- Array.sumBy
- Array.averageBy
- List.iter
- List.iteri
- List.sumBy
- List.averageBy
- List.compareWith
- Seq.sumBy
- Seq.averageBy
- There are no known drawbacks of using this with the above functions.
- Don't use it
-
Other uses