Releases: nickBes/brownsugar
Releases · nickBes/brownsugar
Improved and additional array utills
Now there is full type inference for the array methods.
The new array methods are:
getOk()
returns values fromOkResult
s that exist inside aResult[]
getError()
returns error values fromErrResult
s that exist inside aResult[]
findMap()
returns option over the first item that matches a given mapping callback.
With array utills
Utils:
- filter_map
- get_some
Now we have options
We can:
- Create Some option
- Create None option
- Create Option from null-able types
basic results
now can:
- create results
- convert throw-able callbacks intro results