hydroptic@sopuli.xyz to Programmer Humor@lemmy.ml · 1 month ago"☹️".reverse() == "🙂"sopuli.xyzimagemessage-square26fedilinkarrow-up145arrow-down16cross-posted to: [email protected]
arrow-up139arrow-down1image"☹️".reverse() == "🙂"sopuli.xyzhydroptic@sopuli.xyz to Programmer Humor@lemmy.ml · 1 month agomessage-square26fedilinkcross-posted to: [email protected]
minus-squarehydroptic@sopuli.xyzOPlinkfedilinkarrow-up3·1 month agoCalling reverse() on a function should return its inverse
minus-squaretetris11@lemmy.mllinkfedilinkarrow-up5·1 month agoisprime.reverse(True) // outputs 19 billion prime numbers. Checkmate, atheists.
minus-squareCanadaPlus@lemmy.sdf.orglinkfedilinkarrow-up2·1 month 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.