Is it possible to write a function that compares a list of strings or numbers, or both, and determines which items in the list are uniques?
could someone provide sample code of how that would be done using any of the main languages.
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.Sign up to join this community
You can implement a mapping wrapper, that will have "contains" method.
Something like here : https://github.com/ethereum/dapp-bin/blob/master/library/iterable_mapping.sol