lnd/fn
Olaoluwa Osuntokun 166b2fdb97 fn: add UnwrapOrErr and UnwrapOrFail to Option
In this commit, we add two new methods that simplify usage of an
handling a value wrapped in an Option. Thes methods allow a caller to
force the nil/None check up front, and either obtain the value, or fail
the current execution or test.

This should replace most usages of `UnsafeFromSome` where ever used
today.
2024-02-24 17:21:37 -08:00
..
conc_queue.go fn: add new ConcurrentQueue[T] data structure 2024-01-23 19:09:29 -08:00
either.go fn: add new Either[L, R] type 2024-01-23 19:09:36 -08:00
events.go fn: add new EventPublisher event pub/sub system 2024-01-23 19:09:39 -08:00
func.go fn: add reduce func 2024-01-23 19:09:42 -08:00
go.mod fn: add new generic set container 2024-01-23 19:09:53 -08:00
go.sum fn: add new generic set container 2024-01-23 19:09:53 -08:00
option.go fn: add UnwrapOrErr and UnwrapOrFail to Option 2024-02-24 17:21:37 -08:00
queue.go fn: add basic generic queue 2024-01-23 19:09:45 -08:00
recv.go fn: add basic generic chan recv utility funcs 2024-01-23 19:09:47 -08:00
send.go fn: add SendOrQuit 2024-01-23 19:09:50 -08:00
set.go fn: add new generic set container 2024-01-23 19:09:53 -08:00