Skip to content

Releases: nickBes/brownsugar

Improved and additional array utills

19 Jul 12:32
013fca9
Compare
Choose a tag to compare
Pre-release

Now there is full type inference for the array methods.
The new array methods are:

  • getOk() returns values from OkResults that exist inside a Result[]
  • getError() returns error values from ErrResults that exist inside a Result[]
  • findMap() returns option over the first item that matches a given mapping callback.

With array utills

18 Jul 23:14
d74793b
Compare
Choose a tag to compare
With array utills Pre-release
Pre-release

Utils:

  • filter_map
  • get_some

Now we have options

18 Jul 20:24
33207f4
Compare
Choose a tag to compare
Now we have options Pre-release
Pre-release

We can:

  • Create Some option
  • Create None option
  • Create Option from null-able types

basic results

17 Jul 21:11
Compare
Choose a tag to compare
basic results Pre-release
Pre-release

now can:

  • create results
  • convert throw-able callbacks intro results