Search found 5 matches

by Ferreira
Mon May 04, 2009 11:23 am
Forum: Common Lisp
Topic: Coerce bidimensional array into list
Replies: 2
Views: 4734

Coerce bidimensional array into list

I know I can use the coerce function to make a list from a given array, However, when I give it a multidimensional array I get a list of all elements.

Is there any "easy way" to get ((1 2) (3 4)) from #((1 2) (3 4))?

Thanks in advance. ;)
by Ferreira
Wed Apr 22, 2009 1:21 pm
Forum: Common Lisp
Topic: Access a specific row from an array
Replies: 4
Views: 6645

Re: Access a specific row from an array

Thanks, make-array's keyworded parameters solved my problem.

;)
by Ferreira
Wed Apr 22, 2009 11:27 am
Forum: Common Lisp
Topic: Access a specific row from an array
Replies: 4
Views: 6645

Access a specific row from an array

Is there any way I can access a specific row from an array, i.e., I have this array:

#2A((1 2) (3 4))

How can I get the first row as #A(1 2)?

Thanks in advance.
by Ferreira
Thu Apr 02, 2009 1:32 pm
Forum: Common Lisp
Topic: Compilation and defstruct
Replies: 2
Views: 5494

Re: Compilation and defstruct

Thanks but I solved it already. I was trying to use a constructor in a defconstant.
by Ferreira
Thu Apr 02, 2009 5:14 am
Forum: Common Lisp
Topic: Compilation and defstruct
Replies: 2
Views: 5494

Compilation and defstruct

I have defined a structure using defstruct. The problem is, my code runs fine when interpreted but when I try to compile it I get an error saying that "make-state" is an undefined function. Is there anything I should do in order to compile my code that isn't required when it is being inter...