Skip to content

Instantly share code, notes, and snippets.

@vikingosegundo
Last active April 23, 2023 09:32
Show Gist options
  • Save vikingosegundo/649f07ada730d4cffec2539c39800500 to your computer and use it in GitHub Desktop.
Save vikingosegundo/649f07ada730d4cffec2539c39800500 to your computer and use it in GitHub Desktop.
let romans = (1...100).map { roman(for: $0) } // numerals from ints
let ints = romans.map { from(roman: $0) } // ints from numerals
(zip(ints, romans)).forEach { x in
print(x)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment