@[email protected] to Programmer [email protected]English • edit-21 year agoNeed a rust version too.toggl.comimagemessage-square86fedilinkarrow-up1852arrow-down134
arrow-up1818arrow-down1imageNeed a rust version too.toggl.com@[email protected] to Programmer [email protected]English • edit-21 year agomessage-square86fedilink
minus-square@[email protected]linkfedilink87•1 year agoPython: from Rescues import Princess Princess.rescue()
minus-square@[email protected]linkfedilink23•1 year agomap(lambda princess: princess.rescue(), [castle.get_princess() for castle in castles])
minus-square@[email protected]linkfedilink6•1 year agoDon’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()
map(lambda princess: princess.rescue(), [castle.get_princess() for castle in castles])
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]]
from Castle import Princess
Done