Need a rust version too.

3 years ago by MaliciousKebab to c/programmer_humor

load all comments
scratchresistor 87 points 3 years ago

Python:

from Rescues import Princess
Princess.rescue()
path: 0 5869271, hotness: undefined, score: 87, children: 3
bob_lemon 23 points 3 years ago

map(lambda princess: princess.rescue(), [castle.get_princess() for castle in castles])

path: 0 5869271 5871162, hotness: undefined, score: 23, children: 1
scratchresistor 6 points 3 years ago

Don't forget to keep your return values...

rescued_princesses = [{"princess": princess, "rescued": princess.rescue()} for princess in [castle.get_princess() for castle in castles]]

path: 0 5869271 5871162 5876975, hotness: undefined, score: 6, children: 0
CmdrKeen 2 points 3 years ago
from Castle import Princess

Done

path: 0 5869271 5949375, hotness: undefined, score: 2, children: 0
programmer_humor
programmer_humor

@programming.dev

login for more options
33694
2569
7739

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
    • If the mod doesn't find it funny, you're banned. Ha-ha!... For real: do not use the community for "statements". There are other places for such content. Keep it chill and funny.

go to feed...