Relative Content

Tag Archive for common-lisp

How did I force the loop macro not to iterate over its input list?

I wrote the code below (INFIX-LINKING-LEAFS – the last function – is the first caller with the LOOP). I’m sorry if it is too much code (five functions) for the purpose of answering my question. I thought, the whole context might be necessary to identify my fallacy.

create CL function that returns arbitrary size array

I’m new to LISP and I am misunderstanding something basic. I want the following function to create an NxN array where N is passed to the function by the user during function call, for example (gson 3). Trying to compile this function with SBCL gives the error “bad array dimensions (N N)”. I don’t understand why this doesn’t work.