hydroptic to Programmer Humor@lemmy.ml · 4 months ago"☹️".reverse() == "🙂"imagemessage-square27fedilinkarrow-up1231arrow-down114cross-posted to: programmer_humor@programming.dev
arrow-up1217arrow-down1image"☹️".reverse() == "🙂"hydroptic to Programmer Humor@lemmy.ml · 4 months agomessage-square27fedilinkcross-posted to: programmer_humor@programming.dev
minus-squarehydropticOPlinkfedilinkarrow-up13·4 months agoCalling reverse() on a function should return its inverse
minus-squaretetris11@lemmy.mllinkfedilinkarrow-up9·4 months agoisprime.reverse(True) // outputs 19 billion prime numbers. Checkmate, atheists.
minus-squareCanadaPlus@lemmy.sdf.orglinkfedilinkarrow-up2·4 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.