Method: Containers::CBst#push

Defined in:
ext/containers/bst/bst.c

#push(key, value) ⇒ Object Also known as: []=



198
199
200
201
202
203
# File 'ext/containers/bst/bst.c', line 198

static VALUE rb_bst_push_value(VALUE self, VALUE key, VALUE value) {
  bst *tree = get_bst_from_self(self);
  insert_element(tree, &(tree->root), create_node(key,value));
  tree->size++;
  return self;
}