Alex Snezhko

Results 39 issues of Alex Snezhko

I figured I'd include both maps and sets in one PR since their implementation is almost identical. They are both implemented as size-balanced BSTs, following "Implementing Sets Efficiently in a...

As alluded to in #1383, it would be a good idea to include immutable variants for the currently existing mutable data structures (namely `Set` and `Map`). Here is my proposal...

Currently, there are a few functions in the array and list modules such as `map`, `filter`, and `reduce` that have equivalent functions receiving an index as well as the element...

Earlier I came across a very peculiar bug that was causing a runtime error along the lines of this: ``` wasm://wasm/000100ca:1 RuntimeError: table index is out of bounds at wasm://wasm/000100ca:wasm-function[44]:0x3fc7...

bug

Add a file system module that is more high-level and user-friendly than the current `sys/file` Closes #211

stdlib

Allows `for` and `while` loops to be used without block bodies ```grain for (let mut i = 0; i < 5; i += 1) print("Hello") ```

Currently the formatter is able to pass code like this: ``` @attr1 // Comment 1 @attr2 // Comment 2 let x = 1 ``` However it would be preferable to...

grainfmt

Mapping the characters of a string is sometimes useful to transform a string in a similar manner to other collections.

stdlib
good second issue

Closes #1815 Wherever I thought it made sense, I made the list functions mutate the given list rather than producing a new list e.g. `append`

stdlib

With the following example module: ``` module A provide enum Variant { VariantA, VariantB } ``` A consuming module will experience strange behavior with regards to accessing the definitions defined...

bug
compiler