skiplist-contains?

Synopsis

(skiplist-contains? skiplist key)

Parameters

  • skiplist
  • key

Description

This predicate tests if a skip list contains a specific key. The following data types are valid keys:

  • string
  • macaddr
  • macaddr-range
  • ipaddr
  • ipaddr-range

Side Effects

Return Value

#t or f.

See Also

Example

> skiplist-contains?
#<primitive-procedure skiplist-contains?>
> (define s (skiplist-create))
s
> (skiplist-insert! s '00:00:00:00:00:00 11)
ok
> (skiplist-insert! s '00:00:00:00:00:01 "**DATA**")
ok
> (skiplist-contains? s '00:00:00:00:00:02)
#f
> (skiplist-contains? s '00:00:00:00:00:01)
#t
>