-1

I've got a list like:
[5,7,8,9]
So it contains some ID's of elements I need to set True value via a func(list).
But the func() gets a list of ALL ID's and it's vaules as an argument, so it must look like
[0, 0, 0, 0, 1, 0, 1, 1, 1]
(5th, 7 etc ID's from the first list get 1 value, others - 0)
...