Skip to content

Instantly share code, notes, and snippets.

@JoelQ
Last active Jul 28, 2021
Embed
What would you like to do?
List of helpful Ellie's I've written

List of helpful Ellie's I've written

I often write Ellies to demo an idea or to share a solution with someone on Slack. Some of them are helpful enough to share many times so I keep a reference to them here. Others are just cool so I want to save the link 😎

Forms

Graphs

Puzzles

Core Elm

Subscriptions

JSON decoding

Parsing

Formula Parsing

Attempts at parsing Excel-style formulas, starting manual string munging in a giant nested conditional and moving up to extracting functions, building my own combinators, then finally swapping in the official elm/parser library

Other

Bouncing die

These are a series of implementations of increasing difficulty for the exercise from the random generators section of the official guide where you show a die bouncing a random number of times. A full discussion of the solutions was provided on this forum thread

Maybe applicative exercise

These were a couple exercises to get comfortable with pipeline-style applicatives. The original problem was getting better at GraphQL selection sets but I translated it to Maybe to be more accessible (hence why the piping function is with rather than andMap).

Modifying records

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment