Replies: 8 comments
-
Yes, it fails when list lenghts are different. I personally don't like this behavior, but that seems to be the standard for List and Arrays in F#, whereas for Seq they use the shortest which is the functionality I would expect otherwise. So, another option to have a safe version is to define a What do you think? |
Beta Was this translation helpful? Give feedback.
-
well, all this comes down to subjective prefs. What I do these days is this
for types not under my control coming back to your question: no I would not implement a |
Beta Was this translation helpful? Give feedback.
-
Ok. I don’t see any reason why not to implement your suggestion. Do you want to submit a PR ? |
Beta Was this translation helpful? Give feedback.
-
I've been inspired by this suggestion, and thought that it could be a good idea to add safe zip to F#+. I've implemented it for FSharp.Core types that have unsafe zip implementation and created a PR #370 . I wonder if it could be a first step, then I could expand it to all types with unsafe zip in F#+ |
Beta Was this translation helpful? Give feedback.
-
Maybe we should change that, make our generic |
Beta Was this translation helpful? Give feedback.
-
@gusty , I guess this can be closed |
Beta Was this translation helpful? Give feedback.
-
Not sure, let's ask @robkuz if he's happy with your implementation. I think it's not exactly what he was after. |
Beta Was this translation helpful? Give feedback.
-
the zip implementation uses
List.zip
underneath which will fail with a runtime exceptionwe should have a save zip version
Beta Was this translation helpful? Give feedback.
All reactions