Add Badge

This commit is contained in:
Kevin Hughes 2024-12-01 20:18:58 +00:00
parent f214201581
commit e15d83107b
Signed by: kev
GPG Key ID: 4F56A079AF7A66A6
1 changed files with 5 additions and 1 deletions

View File

@ -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 ## Input
```elixir ```elixir
@ -43,6 +47,6 @@ input
f = Enum.frequencies(y) 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 |> Enum.sum
``` ```