hydroptic@sopuli.xyz to Programmer Humor@lemmy.ml · 2 months ago"☹️".reverse() == "🙂"sopuli.xyzimagemessage-square29fedilinkarrow-up11arrow-down10cross-posted to: [email protected]
arrow-up11arrow-down1image"☹️".reverse() == "🙂"sopuli.xyzhydroptic@sopuli.xyz to Programmer Humor@lemmy.ml · 2 months agomessage-square29fedilinkcross-posted to: [email protected]
minus-squareCanadaPlus@lemmy.sdf.orglinkfedilinkarrow-up0·edit-22 months agoAlso, it should turn an error into an empty but successful call. /s
minus-squarehydroptic@sopuli.xyzOPlinkfedilinkarrow-up0·2 months agoCalling reverse() on a function should return its inverse
minus-squaretetris11@lemmy.mllinkfedilinkarrow-up0·2 months agoisprime.reverse(True) // outputs 19 billion prime numbers. Checkmate, atheists.
minus-squareCanadaPlus@lemmy.sdf.orglinkfedilinkarrow-up0·2 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.
Also, it should turn an error into an empty but successful call. /s
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.