
Search found 59 matches
- Wed Aug 17, 2011 7:59 am
- Forum: The Lounge
- Topic: Hi, Lispers!
- Replies: 1
- Views: 7185
Re: Hi, Lispers!
Welcome! 

- Thu Jul 28, 2011 7:30 pm
- Forum: Common Lisp
- Topic: newbie at lisp - please help
- Replies: 6
- Views: 7660
Re: newbie at lisp - please help
This is a very basic one that you can use to learn: http://www.clisp.org/
If you want an IDE to use with it, try this: http://www.daansystems.com/lispide/
If you want an IDE to use with it, try this: http://www.daansystems.com/lispide/
- Wed Jul 27, 2011 4:42 pm
- Forum: Common Lisp
- Topic: Print the contents of a multi-dimensional array
- Replies: 11
- Views: 20941
Re: Print the contents of a multi-dimensional array
This is what I was working on. Credit for the print-array function goes to Ramarren. Thanks for the help! I just made a simple string generator. I work for a company and have to do a lot of QA-type things and one thing that I had to do the other day was to verify that text fields only allow the spec...
- Wed Jul 27, 2011 10:22 am
- Forum: Common Lisp
- Topic: Print the contents of a multi-dimensional array
- Replies: 11
- Views: 20941
Re: Print the contents of a multi-dimensional array
Thanks, Ramarren!
I actually wasn't aware of ARRAY-DIMENSION. Iterate does look more appealing, definitely with the link you posted.
I actually wasn't aware of ARRAY-DIMENSION. Iterate does look more appealing, definitely with the link you posted.
- Wed Jul 27, 2011 9:59 am
- Forum: Common Lisp
- Topic: Print the contents of a multi-dimensional array
- Replies: 11
- Views: 20941
Re: Print the contents of a multi-dimensional array
Ah yeah, I kinda knew that was the reason. Just didn't want it to be. Anyway though, I got it to do what I wanted it to. Might not be the best way, but it works: (loop for i from 0 to 4 do (format t "~a~&" (loop for m from 0 to 4 do (format t "~a" (aref *hi* i m))))) NILNILNI...
- Wed Jul 27, 2011 9:45 am
- Forum: Common Lisp
- Topic: Print the contents of a multi-dimensional array
- Replies: 11
- Views: 20941
Re: Print the contents of a multi-dimensional array
Code: Select all
(loop for i from 0 to 4 do
(loop for m from 0 to 4 collect (aref *hi* i m)))

Just using collect to see if I can figure this out.
- Wed Jul 27, 2011 9:21 am
- Forum: Common Lisp
- Topic: Print the contents of a multi-dimensional array
- Replies: 11
- Views: 20941
Re: Print the contents of a multi-dimensional array
Thanks, I guess I was not aware you could just use PRINT directly on the array. Though that's not what I wanted. I want to print each row of the array as such ; For the above I would want it to come out like this: nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil ni...
- Wed Jul 27, 2011 7:52 am
- Forum: Common Lisp
- Topic: Print the contents of a multi-dimensional array
- Replies: 11
- Views: 20941
Print the contents of a multi-dimensional array
Hello, I am trying to print the contents of an Array of rank 2. However, I am getting this error: ; At the moment it would just print a bunch of nils, but that's fine for the moment. CG-USER(15): (defparameter *hi* (make-array '(5 5))) *HI* CG-USER(16): *hi* #2A((NIL NIL NIL NIL NIL) (NIL NIL NIL NI...
- Mon Jul 25, 2011 8:17 am
- Forum: Common Lisp
- Topic: Problem with auto closing parentheses
- Replies: 3
- Views: 5534
Re: Problem with auto closing parentheses
I've noticed this happening in a couple other lisp implementations. Never found any way of turning it off, though that does not mean there isn't a way. You do get used to after a while though, just takes a little bit of time. I used to think it was quite annoying as well, but now I hardly even notic...
- Sun Jul 17, 2011 9:46 pm
- Forum: Common Lisp
- Topic: Read only a single element
- Replies: 2
- Views: 4658
Re: Read only a single element
Okay, I have not the slightest clue how I missed this. Maybe because it's late :oops: (read-char) does what I am looking for. CG-USER(35): (read-char) a #\a CG-USER(36): (read-char) ajaj #\a CG-USER(37): (read-char) 1334 #\1 CG-USER(38): (read-char) %%100 #\% Might not want it to be a char, but I ca...