freenode/#lisp - IRC Chatlog
Search
12:41:19
jmercouris
says here in the hyperspec: "delete, delete-if, and delete-if-not are like remove, remove-if, and remove-if-not respectively, but they may modify
12:41:59
jmercouris
I don't understand how removing an element from the list is not modifying the list
12:43:26
jmercouris
I just don't understand why we couldn't write a ffunction to traverse the list and remove elements
12:43:50
jmercouris
we would just have to make the cdr before the element point to the car of the element after the one we don't want
12:44:56
phoe
if you want to delete the only element from a one-element list, then you cannot magically turn a cons into a NIL
12:46:06
phoe
for all other cases, sure thing, you can cut and glue the conses in any way you'd like - I even heard that someone prefers it that way
13:27:19
flip214
how about that for deleting from a one-element-list? (cdr (delete item (list* (gensym) list)))
14:14:08
flip214
when doing CFFI:FOREIGN-ARRAY-TO-LISP I tell it '(:array :uchar 15), but it returns one with :ELEMENT-TYPE T.
14:14:29
flip214
Yeah, I can pass the correct element-type in as additional argument, but why doesn't it derive that itself from :uchar?
16:32:05
beach
userself: You need a good programming environment, or you will quickly be disgusted. Currently, the best one appears to be Portacle.
17:01:37
ckonstanski
I started my lisp journey with Practical Common Lisp. Not only was it a great introduction to lisp, it also offered some sort of easy-to-use solution for getting a lisp environment spun up. Was it called maclisp or something? Never used it. Install lisp, configure quicklisp and install slime in your emacs. What more is there to do?
19:26:55
White_Flame
random style question: Where do you put a comment describing the first binding of a LET clause? (let (;; Foo \n (foo ...) ?
19:27:28
Shinmera
depends on how long it is, a ; after the binding clause on the same line can also work.
19:36:20
_death
White_Flame: I had a case like this recently.. it felt icky, sure, but I managed to get over it, since it happens so rarely.. in fact I think later on the code structure changed and it was no longer an issue
19:42:09
_death
personal stuff... atm probabilistic graphical models stuff (I mentioned it some time ago)
20:24:26
pjb
White_Flame: note that you can also use #| comments |# that you can place anywhere. So put it where it's most convenient!.
21:25:20
phoe
And already forgot that I fixed it both in postmodern and in pgloader, except I did not finish submitting both of the PRs