Search found 6 matches
- Mon Aug 24, 2015 3:36 pm
- Forum: Common Lisp
- Topic: Saving and loading objects that reference of objects?
- Replies: 2
- Views: 8546
Saving and loading objects that reference of objects?
Hi there again, I was wondering whether there was a way to save instances of objects that include instances of other objects. For instance, I might have a family object that contains a slot for children and have multiple instances of person in the children slot, who might themselves have children an...
- Wed Jan 15, 2014 8:05 am
- Forum: Common Lisp
- Topic: Iterating through a list repeatedly?
- Replies: 3
- Views: 7430
Re: Iterating through a list repeatedly?
It works! ^_^
Thank you!
And for the general approach tips too
Thank you!
And for the general approach tips too
- Fri Jan 10, 2014 8:13 am
- Forum: Common Lisp
- Topic: Iterating through a list repeatedly?
- Replies: 3
- Views: 7430
Iterating through a list repeatedly?
Hi again, I'm trying to make something that iterates through two lists, matching the contents - though not the sequence - of the former against the latter returning true or false depending on whether it finds a match. (defun included (list lof-l) (if (not (eq (car list) (car lof-l))) ;; If car lst i...
- Thu Nov 28, 2013 12:44 pm
- Forum: Common Lisp
- Topic: Defining setf behavior (Or is there an easier way?)
- Replies: 9
- Views: 18852
Re: Defining setf behavior (Or is there an easier way?)
Just learning myself, but might a hash table do what you want? You can make them with: (defparameter *hash-table* (make-hash-table)) Create new entries with: (setf (gethash 'entry-key *hash-table*) value) And fetch them back with: (gethash 'entry-key *hash-table*) Which will return the associated va...
- Sat Oct 26, 2013 4:35 pm
- Forum: Common Lisp
- Topic: Quicksort?
- Replies: 2
- Views: 6030
Re: Quicksort?
Ah, excellent. Thank you!
- Thu Oct 24, 2013 9:21 am
- Forum: Common Lisp
- Topic: Quicksort?
- Replies: 2
- Views: 6030
Quicksort?
Hello, Could anyone help me with kinda my kinda clueless fumbling? ^_^; (I'm kinda new to the whole programming thing.) I was thinking that it'd be kinda neat to be able to take the data from my school work and run correlation tests on everything against everything. I'm trying to implement quicksort...