darashi on Nostr: /run rb def anagram?(a, b) a.chars.sort == b.chars.sort end puts ...
/run rb
def anagram?(a, b)
a.chars.sort == b.chars.sort
end
puts anagram?("やっていき", "いきってや")
Published at
2024-11-01 07:00:59Event JSON
{
"id": "073c73a10bc76e56fef249e35690f68cfee90b110e3b7d67729740107c675d48",
"pubkey": "07804b786c6a3b400b7b20d9bfc945035f3ad213da797b0c50954767c375c543",
"created_at": 1730444459,
"kind": 1,
"tags": [],
"content": "/run rb\ndef anagram?(a, b)\n a.chars.sort == b.chars.sort\nend\n\nputs anagram?(\"やっていき\", \"いきってや\")",
"sig": "52b9e6b19d11833c709e5eb6d587fa4bec454ba4549fa880946301b63909e40f72593fc59a2ede099839ee0beaf1633c070ea67a6e9d7e67a8df451c4f616852"
}