Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save MarcelineVQ/c073c369cf19542c1be7e841530811a1 to your computer and use it in GitHub Desktop.

Select an option

Save MarcelineVQ/c073c369cf19542c1be7e841530811a1 to your computer and use it in GitHub Desktop.
formatNat' : Nat -> String
formatNat' n = case isLTE 10 n of
(Yes prf) => "." ++ show (n - 10)
(No contra) => show n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment