How do I convert this section of C++ code into Lisp using Lisp lists. I don't really need to show it but I have a C++ vector<int>
I converted into lisp using CFFI. I converted the vector<int> filled with 5 numbers ,to a Lisp List.
Here is the final Lisp list:
I would like you to hopefully ignore what I said previously and pretend that I'm just starting out with the previously mentioned Lisp list and know I need to operate on it precisely as below so it will fit into the other C++ code I'm converting to Lisp. can you kind gentleman possible show my the exact Lisp equivelant of the below statement, operating on this exact list...
....thanks in advance for any help on this.
Code: Select all
for( vector<int>::const_iterator r = number.begin(); r != number.end(); r++ )
{
number.push_back(1);
}