-
## Description
We want to be able to plot simulations with NPIs triggered by the current situation.
NPI triggers are:
* Number of deaths in the last N days (e.g. N=14)
* Number of infections in…
-
Create two projects with `gleam new`: demo1 and demo2.
In both project create a file `demo.gleam`.
In demo1 with content:
```gleam
import gleam/io
pub fn main() {
"demo in demo1"
|> i…
-
I talked a bit about it on the discord or twitter, but it's time to put everything on text:
I'm planning a complete rewrite of the backend & database restructuration. This is needed to support #87 …
-
After a bit of a discussion about how cool [elm reactor](https://elmprogramming.com/elm-reactor.html) is the idea of having the compiler automatically rebuild whenever files change came up. Mostly ope…
-
The following Gleam code compiles to invalid Erlang code. The problem is due to the guard expression and the presence of a function in the type being compared.
The comparison works as expected if t…
-
This would take a string and return a string with all regex-specific characters escaped so that it would match the literal string if compiled to a regex. It would be useful when you want to exactly ma…
-
I'm learning Gleam, and sometimes it's hard to remember to use `=` or `:` in some cases, especially for record expressions.
```gleam
pub fn new(name: String) {
Thing(
name = name, // s…
-
-
which would be cool if you had a pipeline or chaining feature in erlang (krarup). Something like
here https://tour.gleam.run/functions/pipelines/
I would just turn it around, so that the value is p…
leobm updated
2 months ago
-
It looks like gleeunit is assuming to be run from the project's root. If we do the following it won't find any test:
```shell
gleam new foo
cd foo/test # Or any other subdirectory
gleam test
#…