Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call for examples #22

Open
adrhill opened this issue Apr 23, 2021 · 1 comment
Open

Call for examples #22

adrhill opened this issue Apr 23, 2021 · 1 comment

Comments

@adrhill
Copy link
Collaborator

adrhill commented Apr 23, 2021

A fun example of (ideally) pure emoji code that does something interesting would be great for the readme!

@FPGro
Copy link
Contributor

FPGro commented Dec 2, 2021

Is anybody willing to solve this years advent of code with as many emojis as possible?

using WatchJuliaBurn
open("./day2_input.txt") do 📑
    ⛵ = 🗂( ((🧭, 💯), ⛵) -> (⛵[🧭] = get(⛵, 🧭, 0) + parse(Int,💯); ⛵),
    split.(readlines(📑)), init = 📖{String,Int}())
    🖨️("Horizontal position: $(⛵["forward"])\nDepth: $(⛵["down"]-⛵["up"])")
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants