Add NonEmptyList.unsafeOfList
See original GitHub issueJust a very small helper - nothing more
let unsafeOfList xs = (tryOfList xs).Value
I think this should be part of the “default lib”
Issue Analytics
- State:
- Created 4 years ago
- Comments:16 (14 by maintainers)
Top Results From Across the Web
NonEmptyList
As stated by its name, NonEmptyList is a specialized data type that has at least one element. Otherwise it behaves like a normal...
Read more >Scala / Cats: How to unzip an NonEmptyList
The unzip method is available for NonEmptyList if you import cats.syntax.functor._ . scala> import cats.data.NonEmptyList scala> import cats.
Read more >Add NonEmptyList.fromListGroupBy · Issue #2157
We always know that if List[A] is not empty then values in Map will be NonEmptyList . This also can be implemented along...
Read more >NonEmptyList
NonEmptyList represents a List that is guaranteed not to be empty. This is useful to allow more accurate domain modeling in situations where...
Read more >NonEmptyList<'T>
NonEmptyList <'T>. A type-safe list that contains at least one element. Examples. #r @"nuget: FSharpPlus ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ll mark the PR as ready for review
Maybe
invalidOp
?