stdlib
stdlib copied to clipboard
🎁 Gleam's standard library
I tried using some [Files](https://developer.mozilla.org/en-US/docs/Web/API/File) (obtained from the [files attribute](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/files) of `input type="file"`) as keys in a `Dict` but despite inserting multiple different files there was only one entry at...
Can we add "fmod" to the float module? The Int type has a modulo function, why not Float?
```gleam pub fn random(min: Int, max: Int) -> Int ``` 1. "min" and "max" can be used interchangeably, which is confusing to me. e.g. random(-1, 1) is the same as...
``` Values were not equal expected: "" got: "//erl()" ```
This PR will update the standard library from using `Result` to using `Optional` ### Why? I found many of the list functions using `Result` were returning `Error(Nil)` or ignoring the...
Split function for the bit_array package
Made a `bit_array.split_once(BitArray, BitArray) -> #(BitArray, BitArray)` and added tests in `tests/`.
- rename dict.update to dict.upsert - deprecate dict.update - 2.0 let dict.update return Result and Error if no key found
So that you can split a bit array in two at the first instance of some sub-pattern