Not sure what is the point
Python 3\nPerhaps to solve it with a one-liner?\n\npython\nclass Solution:\n    smallestEqual = lambda self, nums: next((i for i, n in enumerate(nums) if n == i
**Python 3**\nPerhaps to solve it with a one-liner?\n\n```python\nclass Solution:\n    smallestEqual = lambda self, nums: next((i for i, n in enumerate(nums) if n == i % 10), -1)  \n```\n**C++**\n```cpp\nint smallestEqual(vector<int>& nums) {\n    for (int i = 0; i < nums.size(); ++i)\n        if (nums[i] == i % 10)\n            return i;\n    return -1;\n}\n```
[]