Skip to content

Instantly share code, notes, and snippets.

Avatar
✈️
Hacking on the road

Jezen Thomas jezen

✈️
Hacking on the road
View GitHub Profile
@jezen
jezen / finding_success.hs
Created Apr 9, 2019
Solutions for the exercises in Finding Success (and Failure) in Haskell
View finding_success.hs
{-# 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
View invoice_example.txt
__ __ _ ___ _ _
\ \ / /_ _| |__ / __| |_ __ ___ _(_)_ _ __ _
\ V / _` | / / \__ \ ' \/ _` \ V / | ' \/ _` |
|_|\__,_|_\_\ |___/_||_\__,_|\_/|_|_||_\__, |
|___/ YAK SHAVING LTD
═══════════════
Company Number: 09522289
73 Douglas Buildings
Marshalsea Road
@jezen
jezen / Io Example Problems
Created Dec 15, 2013
The example problems have gone missing from the Io language website, so here’s a backup.
View Io Example Problems
#Sample code
#Hello world
"Hello world!" print
#Factorial
factorial := method(n, if(n == 1, 1, n * factorial(n - 1)))
99 bottles of beer
You can’t perform that action at this time.