Help needed regarding merkle implementation in noir

let is_member = std::merkle::check_membership(root, leaf, index, hashpath);
```|

In the above , what is index? In the examples, we are using index = 0 . Why is that the case?

is index used to denote the position of the leaf, left or right?
50 Likes