tangled
alpha
login
or
join now
hauleth.dev
/
advent-of-code
3
fork
atom
this repo has no description
3
fork
atom
overview
issues
pulls
pipelines
style: remove redundant clauses
hauleth.dev
3 years ago
e779273c
1a18bd1b
+1
-2
1 changed file
expand all
collapse all
unified
split
2022
day13.livemd
+1
-2
2022/day13.livemd
···
440
440
441
441
```elixir
442
442
defmodule Signal do
443
443
-
def compare([], []), do: :eq
444
444
-
def compare([], [_ | _]), do: :lt
445
443
def compare(a, a), do: :eq
446
444
def compare(a, b) when is_integer(a) and is_integer(b) and a < b, do: :lt
445
445
+
def compare([], [_ | _]), do: :lt
447
446
def compare([a | as], [b | bs]), do: with(:eq <- compare(a, b), do: compare(as, bs))
448
447
449
448
def compare(a, b)