Closed gusty closed 7 years ago
Actually it will never work with any Enumerable but that's the correct behavior, because it requires also that the IEnumerable converts back from Seq
for instance with the OfSeq
method.
The NonEmptyList
however can be fixed by adding a specific Replace
instance which uses the knowledge that the resulting string will never be empty because the newValue
parameter is also NonEmpty.
So the only thing to do in FsControl is to add a method with the right signature which operates using ToSeq
and OfSeq
.
This code fails:
Note:
NonEmptyList
from F#+