Comment

Comment by user9756

>But another good example is rewriting an if/else chain as a dictionary lookup or repetitive code as a tuple of operations followed by a for loop.

I'm familiar with the dictionary lookup method but not the tuple. Perhaps it's obvious but could someone please give an example?

parent user9756 10 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton