From e15d83107be101768caad0ed64944b31b6649bfb Mon Sep 17 00:00:00 2001 From: Kevin Hughes Date: Sun, 1 Dec 2024 20:18:58 +0000 Subject: [PATCH] Add Badge --- day01.livemd | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/day01.livemd b/day01.livemd index ddad0f0..0b3401f 100644 --- a/day01.livemd +++ b/day01.livemd @@ -7,6 +7,10 @@ Mix.install([ ]) ``` +## Run Me + +[![Run in Livebook](https://livebook.dev/badge/v1/blue.svg)](https://livebook.dev/run?url=https%3A%2F%2Fgit.kev.pub%2Fkev%2Faoc2024%2Fraw%2Fbranch%2Fmain%2Fday01.livemd) + ## Input ```elixir @@ -43,6 +47,6 @@ input f = Enum.frequencies(y) -Enum.map(xfn xx -> xx * (f[xx] || 0) end) +Enum.map(x, fn xx -> xx * (f[xx] || 0) end) |> Enum.sum ```