You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(defparameter *searched-list*
'(b b a b b b b b b b a b a b b b a b a b b b a a a a b a a b a a a a a
a b a b b a b a a b a a a b b a a b a a a a b b a b a b a a a b a b
b a b a a b b b b b a a a a a b a b b b b b a b a b b a b a b))
No problems up to here, but
(defparameter *pattern-sublists*
(remove-duplicates
(let* ((s *searched-list*) (len (length s)))
(loop for x from 0 to 8 nconc
(loop for y from 0 to (- len x)
collect (subseq s y (+ y x)))))
:test #'equal))
yields /opt/ros/kinetic/share/euslisp/jskeus/eus/Linux64/bin/irteusgl: ERROR th=0 illegal start/end index in (subseq s y (+ y x))E:
I realize there's been a discussion on subseq-related issues lately, but it seems to me (perhaps wrongly) to be of a different kind.
obs.: that is using the loop library, which does (pretty much seem to) work.
The text was updated successfully, but these errors were encountered:
(defparameter*pattern-sublists*
(remove-duplicates
(let* ((s *searched-list*) (len (length s)))
(loop for x from 0 to 8nconc
(loop for y from 0 to (- len x)
collect (if (zerop x) ;; y = y+x = lennil
(subseq s y (+ y x))))))
:test#'equal))
No problems up to here, but
yields
/opt/ros/kinetic/share/euslisp/jskeus/eus/Linux64/bin/irteusgl: ERROR th=0 illegal start/end index in (subseq s y (+ y x))E:
I realize there's been a discussion on
subseq
-related issues lately, but it seems to me (perhaps wrongly) to be of a different kind.obs.: that is using the loop library, which does (pretty much seem to) work.
The text was updated successfully, but these errors were encountered: