hydroptic@sopuli.xyz to Programmer Humor@lemmy.ml · 3 months ago"☹️".reverse() == "🙂"sopuli.xyzexternal-linkmessage-square25fedilinkarrow-up1232arrow-down114cross-posted to: [email protected]
arrow-up1218arrow-down1external-link"☹️".reverse() == "🙂"sopuli.xyzhydroptic@sopuli.xyz to Programmer Humor@lemmy.ml · 3 months agomessage-square25fedilinkcross-posted to: [email protected]
minus-squarehydroptic@sopuli.xyzOPlinkfedilinkarrow-up12·3 months agoCalling reverse() on a function should return its inverse
minus-squaretetris11@lemmy.mllinkfedilinkarrow-up9·3 months agoisprime.reverse(True) // outputs 19 billion prime numbers. Checkmate, atheists.
minus-squareCanadaPlus@lemmy.sdf.orglinkfedilinkarrow-up2·3 months agoIt’s a just a joke, but I feel like that actually says something pretty profound about duck typing, and how computable it actually is.
Calling
reverse()
on a function should return its inverseIt’s a just a joke, but I feel like that actually says something pretty profound about duck typing, and how computable it actually is.