Justin Magaram
Justin Magaram
Creates an array from a single value. Includes documentation and tests. Zero cost binding to `Array.of`. F# has this by the name `Array.singleton`. Useful in pipeline mode to convert a...
I see there is a new `Ordering` module that defines the return type for ordering functions. I'm wondering if we would get more flexibility by defining `Ordering.t` as the comparison...
I'm trying to do something simple. I caught a Firebase exception and want to access the `code` property that is a string. Firebase errors have code properties with contents like...
An important distinction is _reference equality_ versus _value equality_. The code below will lead to surprising bugs and behavior if you become accustomed to the way ReScript uses value equality...
The Type module seemed like it could use some love. Here are some ideas and issues. This is a **draft/experiment** for feedback. I'm happy to clean up the Type module,...
Provides a way to get a custom property value out of an Error. Includes full documentation, warnings, and a test. This satisfies a real-world scenario of me trying to get...
This is helpful for initializing an array when you don't know exactly how many items are going to be in it. Also can be used for int/float ranges like `Array.fromFormula(10,...
Uses Array.of under the hood. More convenient than mapping an Option to an array.
I've been looking at the Error module. It is hard to raise exceptions because each of the different types are exposed in sub-modules like `Error.SyntaxError` that contain a single function...
Creating a new PR for this. Personally I have run into situations where I have a list of options or a list of results and it kind of hurts my...