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:
- Code: Select all
(1 2 3 4 5)
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...
- Code: Select all
(1 2 3 4 5)
- Code: Select all
for( vector<int>::const_iterator r = number.begin(); r != number.end(); r++ )
{
number.push_back(1);
}