Nicolas Martyanoff on Nostr: Interesting discovery while readying parts of the #CommonLisp standard: #N(…) where ...
Interesting discovery while readying parts of the #CommonLisp standard: #N(…) where N is an unsigned integer yields a vector of size N. Any missing element is initialized to the last value provided. So #5(1 2 3) yields #(1 2 3 3 3) and #3(0) yields #(0 0 0). Handy.
Published at
2024-01-30 10:16:15Event JSON
{
"id": "5067e9252849d1ba021ffdd86a605732437bc03de370f37dded32d96bc8ef845",
"pubkey": "f320bdda416aa99f2ae0949dca56c3bf58a9815c9de7ba950ad1fa568da2b816",
"created_at": 1706609775,
"kind": 1,
"tags": [
[
"t",
"commonlisp"
],
[
"t",
"n"
],
[
"proxy",
"https://emacs.ch/users/galdor/statuses/111844378230263615",
"activitypub"
]
],
"content": "Interesting discovery while readying parts of the #CommonLisp standard: #N(…) where N is an unsigned integer yields a vector of size N. Any missing element is initialized to the last value provided. So #5(1 2 3) yields #(1 2 3 3 3) and #3(0) yields #(0 0 0). Handy.",
"sig": "b65ffa996c98e1c6c889209707dbfa3a9a4b740285dfa6936d24cae75072fb57db77e2f9bb364c4f900921b267c7f10d6a114e423de27f2f798a8b4e903b5282"
}