Do not follow this link

~ihabunek/aoc2022

Advent of Code 2022
Add dependency on curses and gleam_erlang

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~ihabunek/aoc2022
read/write
git@git.sr.ht:~ihabunek/aoc2022

You can also use your local clone with git send-email.

#aoc2022

Advent of Code 2022 solved in Gleam

#Things I miss in Gleam

  • no if and cond. Having to use case for everything can get tedious.
  • no streams
  • no REPL
  • no destructuring function parameters, e.g. this does not work:
fn foo([a, b]) {
    todo
}

Autoformatter is very eager, and won't allow things to stay on one line e.g.

pub type Range(a) =
  #(a, a)

let foo =
  bar()
  |> baz()

#Moments I said WTF

  • list.at returns Ok if index is smaller than 0
Do not follow this link