Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In[1]:= f[n_] := StringMatchQ[IntegerString[n], "1" ~~ _ ~~ "2"];
- Map[f, {123, 122, 111}]
- Out[1]= {False, True, False}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement