scratchresistor@thelemmy.clubtoProgrammer Humor@programming.dev•Need a rust version too.
41·
11 months agoRescuing is only I/O bounded; your argument is irrelevant.
Rescuing is only I/O bounded; your argument is irrelevant.
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]]
Python:
from Rescues import Princess
Princess.rescue()
Only if you have to rescue many princesses in a short period of time