func (n *Treap[T]) ForEach(fn func(v T)) {
	if n != nil {
		n.Left.ForEach(fn)
		fn(n.Value)
		n.Right.ForEach(fn)
	}
}
// ForEach does inorder traversal of the treap
ForEach does inorder traversal of the treap
// ForEach does inorder traversal of the treap
func (n *Treap[T]) ForEach(fn func(v T)) {
	if n != nil {
		n.Left.ForEach(fn)
		fn(n.Value)
		n.Right.ForEach(fn)
	}
}
func ( n * Treap [ T ] ) ForEach ( fn func ( v T ) ) { if n != nil { n . Left . ForEach ( fn ) fn ( n . Value ) n . Right . ForEach ( fn ) } }
ForEach does inorder traversal of the treap
ForEach does inorder traversal of the treap