I have a full list: f = [A,B,C,D,E]
.
And short list: s = [A,B,D]
I want to get result list as short list
+ all rest values
from full list that there are not in short list.
Result should be:
nlist = [A,B,D,C,E]
I tried two loops:
let nlist = s
for f in full:
for s in short:
if s not in f:
nlist.append(f)
But I think it is wrong way