Skip to content

Instantly share code, notes, and snippets.

@CodaFi
CodaFi / AlgorithmW.swift
Last active July 14, 2025 16:31
A Swift Playground containing Martin Grabmüller's "Algorithm W Step-by-Step"
/// Playground - noun: a place where people can play
/// I am the very model of a modern Judgement General
//: # Algorithm W
//: In this playground we develop a complete implementation of the classic
//: algorithm W for Hindley-Milner polymorphic type inference in Swift.
//: ## Introduction