close Warning: Can't synchronize with repository "(default)" (The repository directory has changed, you should resynchronize the repository with: trac-admin $ENV repository resync '(default)'). Look in the Trac log for more information.

Ignore:
Timestamp:
2016-06-03T02:03:26-07:00 (8 years ago)
Author:
Marek Rychlik
Message:

Moved files infix-errors* to junk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/pair-queue.lisp

    r4162 r4170  
    125125                   (i start (1- s)) (j (1+ i) s))))
    126126
    127 (defgeneric enqueue-critical-pairs (self pair-lst)
     127(defgeneric enqueue-critical-pairs (self pair-lst)
     128  (:documentation "Place pairs in PAIR-LST on the queue SELF.")
    128129  (:method ((self critical-pair-queue) pair-lst)
     130    "Enqueue into queue QUEUE the elements of the list PAIR-LST."
    129131    (dolist (pair pair-lst self)
    130132      (enqueue self pair))))
    131 
    132133
    133134(defgeneric make-critical-pair-queue (object &optional poly-lst start)
     
    136137    (with-slots (pair-key-fn pair-order-fn)
    137138        object
    138       (make-instance 'critical-pair-queue
    139                      :element-key #'(lambda (pair)
    140                                       (funcall pair-key-fn
    141                                                (critical-pair-first pair)
    142                                                (critical-pair-second pair)))
    143                      :test pair-order-fn))))
     139      (let ((queue (make-instance 'critical-pair-queue
     140                                  :element-key #'(lambda (pair)
     141                                                   (funcall pair-key-fn
     142                                                            (critical-pair-first pair)
     143                                                            (critical-pair-second pair)))
     144                                  :test pair-order-fn)))
     145           (enqueue-critical-pairs queue (make-critical-pairs poly-lst start))))))
    144146
Note: See TracChangeset for help on using the changeset viewer.