You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let chunkBySize<'a when 'a : equality> (xs : 'a []) size =
let s = xs |> Seq.chunkBySize size
let l = xs |> List.ofArray |> List.chunkBySize size
let a = xs |> Array.chunkBySize size
Seq.toArray s = a && List.toArray l = a
[<Test>]
let ``chunkBySize is consistent`` () =
Check.QuickThrowOnFailure chunkBySize<int>
Check.QuickThrowOnFailure chunkBySize<string>
Check.QuickThrowOnFailure chunkBySize<float>
and I get a compile error.
I think my test is wrong, but I noticed a type inconsistency:
List.chunkBySize is returning 'a list list
Array.chunkBySize is returning 'a [] []
but Seq.chunkBySize is returning Seq<'a []>
Activity
latkin commentedon Jun 16, 2015
This was discussed a bit: #261 (comment)
Also led to: #272
forki commentedon Jun 16, 2015
so my question is: should I ignore it (and close this issue)?
/cc @PatrickMcDonald
latkin commentedon Jun 16, 2015
Yes, the signatures are by design.