Tom O'Brien avatar

This is another Testing post

tomobrien

Published: 17 Feb 2019 › Updated: 17 Feb 2019This is another Testing post

This is another Testing post

Sometimes it's desired to uniquify a list based on some criteria other than just equality, for example, to filter out objects that are different, but share some property. This can be done elegantly by passing a callback. This "key" callback is applied to each element, and elements with equal "keys" are removed. Since key is expected to return a primitive, hash table will work fine here:

Leave This is another Testing post to:

Written by

What is happening to our economy and our politics? Are we stuck forever in this corporate dystopia? What can we learn from the failures of radical politics?

Read more #pok. oklskdjf posts


Best Posts From Tom O'Brien

We have not curated any of tomobrien's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From Tom O'Brien