lua.wetgenes.gamecake.fun.yarn.items.iterate_dotnames
for name,tail in items.iterate_dotnames(names) do ... end
Iterator over a names string, start with the full string and cut off the tail on each iteration. This is used for simple inheritance merging of named prefabs and rules or anything else.
Second return value is the tail of the string or the string if not tail.
for example the following input string
"one.two.three.four"
would get you the following iteration loops, one line per loop
"one.two.three.four" , "four"
"one.two.three" , "three"
"one.two" , "two"
"one" , "one"