jack-pappas / ExtCore

An extended core library for F#.
Apache License 2.0
180 stars 32 forks source link

Fix Error in ResizeArray.init #50

Closed goswinr closed 2 years ago

goswinr commented 3 years ago

I believe the initializer should be called with 'i' not 'count' like in Array.init here: https://github.com/dotnet/fsharp/blob/ec5bad3a391357e03ff2286a264f0e4faf7d840d/src/fsharp/FSharp.Core/local.fs#L997

goswinr commented 3 years ago

see also https://github.com/dotnet/fsharp/blob/bf2c086c2852426624c92ca77f091e8994ced380/src/fsharp/utils/ResizeArray.fs#L20