File: scratch.lisp

package info (click to toggle)
cl-containers 20140211-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,076 kB
  • ctags: 1,386
  • sloc: lisp: 8,330; makefile: 14
file content (17 lines) | stat: -rw-r--r-- 483 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
(in-package #:cl-containers-test)

#|
(defvar *heap* (make-instance 'cl-containers:heap-container))
(cl-containers:insert-new-item *heap* 2)
(cl-containers:insert-item *heap* 10)

(defvar *heap* (make-instance 'binary-search-tree))
(cl-containers:insert-new-item *heap* 10)
(cl-containers:insert-item *heap* 10)

(let ((heap-node (make-node-for-container *heap* 10)))
  (compute-applicable-methods 
   #'CL-CONTAINERS:INSERT-ITEM
   (list cl-containers-test::*heap* heap-node)))
|#