Skip to content

Instantly share code, notes, and snippets.

View jezen's full-sized avatar

Jezen Thomas jezen

View GitHub Profile
@jezen
jezen / finding_success.hs
Created April 9, 2019 08:42
Solutions for the exercises in Finding Success (and Failure) in Haskell
{-# LANGUAGE ApplicativeDo #-}
-- My solutions for the exercises in Finding Success (and Failure) in Haskell
-- by Julie Moronuki and Chris Martin
import Data.Char (isAlphaNum)
import Data.List (sort)
import Data.List.NonEmpty (NonEmpty)
import Data.Validation
__ __ _ ___ _ _
\ \ / /_ _| |__ / __| |_ __ ___ _(_)_ _ __ _
\ V / _` | / / \__ \ ' \/ _` \ V / | ' \/ _` |
|_|\__,_|_\_\ |___/_||_\__,_|\_/|_|_||_\__, |
|___/ YAK SHAVING LTD
═══════════════
Company Number: 09522289
73 Douglas Buildings
Marshalsea Road
@jezen
jezen / Io Example Problems
Created December 15, 2013 13:17
The example problems have gone missing from the Io language website, so here’s a backup.
#Sample code
#Hello world
"Hello world!" print
#Factorial
factorial := method(n, if(n == 1, 1, n * factorial(n - 1)))
99 bottles of beer