Skip to content

Instantly share code, notes, and snippets.

View emilhem's full-sized avatar
👨‍💻
Hacking

Emil Hemdal emilhem

👨‍💻
Hacking
View GitHub Profile
@emilhem
emilhem / algebraic.ts
Last active July 27, 2018 16:03
Algebraic Data Types in TypeScript
// Original: https://gist.github.com/SimonAlling/fc1e779579d53378a5c1db1d31459118
// Types:
type Maybe<T> = {
Just: T
} | {
Nothing: {Nothing: null}
}
const Just = "Just";
@emilhem
emilhem / keybase.md
Last active April 3, 2017 20:06
keybase.md

Keybase proof

I hereby claim:

  • I am emilhem on github.
  • I am emilhem (https://keybase.io/emilhem) on keybase.
  • I have a public key ASDgrUZNHqcX9_x5oqtPt2rmPpdXJAGJeq4IZhtSZqgnLQo

To claim this, I am signing this object: