Assume there are a list like following, it is important to note that this is an arbitrary list, to demonstrate that list contains completely random lists with strings/numeric values:
[[["1"],"1"],["2",[["123",[[["23"]]],23],[12.3,"23"]]],[["5"],"1","1"]]
I want to get every single item in this list but I want to get only numbers or strings but not list. Let's say, I created a function which takes only strings, integers and float but not lists. I want to use this function.
I want to create the same list but with different object based on the function's output. Let's say function converts string to numeric value. I want to create a list like that:
[[[1],1],[2,[[123,[[[23]]],23],[12.3,23]]],[[5],1,1]]
I thought and I could not come with an answer. How can I do that?