libera/#commonlisp - IRC Chatlog
Search
16:56:05
jackdaniel
damn, I'm getting faster with bans by minute, it is true that practice makes a champion
17:00:00
jackdaniel
well, if it becomes a bother I will probably contact someone, but next step would be banning by ip I suppose (if they didn't get that they are not welcome here)
17:47:39
jmes
If I have a list of symbols, say '(a b c) where they refer to 1 2 & 3, how do I get at those numerical values? I know I could use (list a b c) but I must access the symbols themselves and their values
17:51:11
jmes
Catie: Ah, that's exactly what I was looking for, thanks! I knew there was a function but my memory (and searching) failed me
18:00:46
pjb
jmes: (loop for name in '(a b c) collect (position name #(nil a b c))) #| --> (1 2 3) |#
18:21:27
pjb
bollu: slime is emacs lisp code. There's no package in emacs lisp, so it's hard to filter out symbols "in slime"…
18:23:41
pjb
bollu: you could do (let (l) (do-symbols (s) (when (and (<= 5 (length (symbol-name s))) (string= "slime" (subseq (symbol-name s) 0 5))) (push s l))) l)
18:24:36
pjb
bollu: now, if you think about it, you could perhaps refine your question. For example, often what one would want is a list of command in the current mode. C-h m would give you that. It may be more useful than asking silly questions.
18:31:36
_death
what's interesting is that had sbcl's apropos-list had used remove-duplicates rather than delete-duplicates, it wouldn't have lost so bad.. the latter seems optimized for space efficiency (don't cons) at the price of time complexity
18:34:06
_death
another weird thing about its definition is that it uses pushnew if a package designator is provided, again giving bad time complexity