Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Get duplicates from an array – codegolf.stackexchange.com

Tags: array

So, I have an Array ['a', 42, 'b', 42, 'a'] I want to alert users to the fact that 42 and 'a' appear in it twice. some_function(['a', 42, 'b', 42, 'a']) should return ['a', 42] Write some code ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot



This post first appeared on ONLINE WEB TRICKS, please read the originial post: here

Share the post

Get duplicates from an array – codegolf.stackexchange.com

×

Subscribe to Online Web Tricks

Get updates delivered right to your inbox!

Thank you for your subscription

×