question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add NonEmptyList.unsafeOfList

See original GitHub issue

Just 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:closed
  • Created 4 years ago
  • Comments:16 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
wallymathieucommented, Mar 30, 2020

I’ll mark the PR as ready for review

1reaction
gustycommented, Mar 30, 2020

Maybe invalidOp ?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found