Table of Contents

IndexToBitMask

IndexToBitMask(NF, IndexList) generates a BitMask represented by a string with NF characters and those at position in IndexList equal to '1'.

Input

Output

Example

### p###

Input

Example.Quanty
BitMask = IndexToBitMask(15,{0,1,2})
print(BitMask)

Result

111000000000000

Table of contents