Search found 5 matches

by justanoob
Mon Jan 11, 2010 7:19 am
Forum: Common Lisp
Topic: Initialization of variables
Replies: 5
Views: 8553

Re: Initialization of variables

I still have to look in your code......
But my problem is that I had initialized ret as nil with

Code: Select all

(setf ret nil)
Still, it was having a value of 3....
by justanoob
Mon Jan 11, 2010 6:49 am
Forum: Common Lisp
Topic: Initialization of variables
Replies: 5
Views: 8553

Initialization of variables

The problem was to take an even numbered list and break it into pairs of two each. So for list ("a" "b" "c" "d" "e" "f"), the output should be (("a" "b") ("c" "d") ("e" "f")). (pro...
by justanoob
Sat Dec 05, 2009 9:09 am
Forum: Common Lisp
Topic: Redefinition of function(operator) *
Replies: 4
Views: 5821

Re: Redefinition of function(operator) *

@gugamilare
Thanks for your suggestions and improvements.
@nuntius
Nice one.
by justanoob
Tue Nov 24, 2009 2:33 am
Forum: Common Lisp
Topic: Redefinition of function(operator) *
Replies: 4
Views: 5821

Re: Redefinition of function(operator) *

Thinking of another approach, I wanted to know if i can redefine an operator for a particular class (like in C++).
by justanoob
Wed Nov 04, 2009 6:33 am
Forum: Common Lisp
Topic: Redefinition of function(operator) *
Replies: 4
Views: 5821

Redefinition of function(operator) *

I am new to Cl. I have to define +,-,* and / operators for strings. so, if the input is : setf ret (+ 1 2 3 "asd"), I want the output in ret to be "1+2+3+asd". Similarly, for other operators. I had no issues while redefining +, - and /. But redefining '*' is giving me headaches. ...