Greetings.
This may seem trivial, but I’m learning…
I faced a classic one-hot situation and have not resolved yet. Can you help me?
I have lists of two types:
Elements = [a,b,c,d,e,f,g].
Marks = [1,0,0,1,1,0,0].
and I want to relate them in such a way that the Marks list specifies a filter over Elements elements. In other words, I need to “one hot” with them so I get a third list
Selection = [a,d,e].
At first I figure some kind of maplist/3,4, particularly I studied convlist/3 but it seems convlist has strictly one list to apply the criteria to.
I seem to need some combination of maplist and convlist…
Any Ideas? What would be the most clean or elegant way for doing this?