Skip to content

Instantly share code, notes, and snippets.

Pry.config.prompt = [proc { "ruby> " },
proc { " | " }]
@jcinnamond
jcinnamond / Crabs.hs
Created December 24, 2020 11:28
aoc23 in haskell
module Crabs
( Cup, Current, Position
, simulate
, readCircle
) where
import Data.Tuple ( swap )
import Data.List (elemIndex )
-- Everything is an int, so create some type aliases to make the argument lists