Simon Tournier on Nostr: Oh, I discover that #Scheme supports transparent conversion between Arabic numbers to ...
Oh, I discover that #Scheme supports transparent conversion between Arabic numbers to Roman numerals, and even “exotic“ ones.
Fun!
$ guix repl
scheme@(guix-user)> (format #t "~&~@r~%" 1234)
MCCXXXIV
$1 = #t
scheme@(guix-user)> (format #t "~&~:@r~%" 1234)
MCCXXXIIII
$2 = #t
#Guix
Published at
2024-07-24 16:50:31Event JSON
{
"id": "096cf7b0ae5864a0edcd69a8ff9b06f261f1cda774efd0ec3c6751268f4a86d9",
"pubkey": "1a2dd5b3edcfb703bae304949a8efb2fc3e36152cf4fda681b23880e6d764c6a",
"created_at": 1721839831,
"kind": 1,
"tags": [
[
"t",
"scheme"
],
[
"t",
"t"
],
[
"t",
"guix"
],
[
"proxy",
"https://social.sciences.re/users/zimoun/statuses/112842495206150126",
"activitypub"
]
],
"content": "Oh, I discover that #Scheme supports transparent conversion between Arabic numbers to Roman numerals, and even “exotic“ ones.\n\nFun!\n\n$ guix repl\nscheme@(guix-user)\u003e (format #t \"~\u0026~@r~%\" 1234)\nMCCXXXIV\n$1 = #t\nscheme@(guix-user)\u003e (format #t \"~\u0026~:@r~%\" 1234)\nMCCXXXIIII\n$2 = #t\n\n#Guix",
"sig": "8e8a1601cb2712228899084dea512b0a56009aa3380f31d76ffb174ba3d8207d13534e2cabb51ef9e29e3919c8362df69909c94bf5c93b628bf62ecfd1fbd6ec"
}