零卡 on Nostr: 说真的流行语言的库里也只有Rails会干出这种操作了 [30] pry(main)> ...
说真的流行语言的库里也只有Rails会干出这种操作了
[30] pry(main)> arr = [1,2,3,4,5]
=> [1, 2, 3, 4, 5]
[31] pry(main)> arr.first
=> 1
[32] pry(main)> arr.second
=> 2
[33] pry(main)> arr.third
=> 3
Published at
2024-07-31 09:13:44Event JSON
{
"id": "1c6d6fb0127c4456afeab633b01af693674f37d840b997e32dd06a92a096bd72",
"pubkey": "9c67ede86cc1d4e1a11522fa5cb35f49f2a4f15ff0069f57c668a869a6e6c66e",
"created_at": 1722417224,
"kind": 1,
"tags": [
[
"proxy",
"https://stelpolva.moe/notes/9wd721eyjfprxb7s",
"activitypub"
]
],
"content": "说真的流行语言的库里也只有Rails会干出这种操作了\n\n\n[30] pry(main)\u003e arr = [1,2,3,4,5]\n=\u003e [1, 2, 3, 4, 5]\n[31] pry(main)\u003e arr.first\n=\u003e 1\n[32] pry(main)\u003e arr.second\n=\u003e 2\n[33] pry(main)\u003e arr.third\n=\u003e 3",
"sig": "e3f9c57f4dd4783b76ca41520a4478b40fc3bc607dc7bc461d622f9fe2444f7375f38d622cfa67d96d5090fcdb0059c6626a23a26b9ac141a6a690ac0e1c89b9"
}