Last active
April 16, 2020 04:04
Just playing around... or perhaps a comprehension challenge. Can you figure out what this code does? Try it in http://elm-lang.org/try
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Html exposing (text) | |
main = drink rum ye scurvies |> yarrrrrr | |
drink up me hearties = | |
case hearties of | |
[] -> me | |
capn :: lads -> drink up me lads |> up capn | |
yarrrrrr = text << String.fromInt | |
rum = (+) | |
ye = 0 | |
scurvies = [1, 2, 3, 4, 5] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment