Skip to content

Instantly share code, notes, and snippets.

View tormodfj's full-sized avatar
💡
Inventing code

Tormod Fjeldskår tormodfj

💡
Inventing code
View GitHub Profile
@tormodfj
tormodfj / gist:464380
Created July 5, 2010 14:08
Calculate Roman numerals with F#
module RomanNumerals
// Define function
let convertToRoman n =
let steps = [
(1, 3, "I")
(4, 4, "IV")
(5, 8, "V")
(9, 9, "IX")