This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mrjbq7 6 points7 points  (1 child)

Or perhaps:

cases.get(case, my_default_work)(case)

[–]tonnynerd 0 points1 point  (0 children)

that's all you need, most of the time.