setf Questions

1

Solved

I'm looking for a way to modify a property value in a property list by multiplying it with a given factor similar to using incf for adding to a value. With incf I could say: (let ((seq '(:x 10 :...
Trainor asked 6/7, 2019 at 8:25

1

Is a setfable the same as a place in CLHS and a location in Norvig's PAIP? I'm trying to figure out what exactly a place is in Common Lisp but to me the HyperSpec's explanation place n. 1. a fo...
Minim asked 16/4, 2017 at 15:7

2

Solved

Here's the thing: I don't "get" setf-expanders and would like to learn how they work. I need to learn how they work because I've got a problem which seems like a typical example for why you should...
Bananas asked 12/7, 2012 at 17:13

2

In Practical Common Lisp chapter 17. Object Reorientation: Classes section Accessor Functions, I was finding it difficult understanding the way SETF is being extended. The functions: (defun (setf...
Forefather asked 6/6, 2014 at 21:3

3

Solved

I know that when you want to make a dynamic/global binding in Lisp, you use either defparameter or defvar. I also know that you can make lexical bindings, well, almost everywhere, using defun argum...
Skell asked 26/12, 2012 at 9:46
1

© 2022 - 2024 — McMap. All rights reserved.