skiplist-delete!

Synopsis

(skiplist-delete! skiplist key)

Parameters

  • skiplist
  • key

Description

This procedure deletes the node with the specified key from the specified skiplist. If there is o such node this procedure does nothing.

Side Effects

The skiplist may be modified.

Return Value

unspecified (ok)

See Also

Example

> (define s (skiplist-create))
s
> (skiplist-insert! s "TEST" "DATA")
ok
> (skiplist-contains? s "TEST")
#t
> (skiplist-delete! s "TEST")
ok
> (skiplist-contains? s "TEST")
#f
>