(define a 1)
`(1 ,a) ; this construction satisfies the definition of list comprehension
Everything else follows.Next time try to add pointers to Assembly language.
How dense you have to be to conveniently ignore everything, imagine arguments, imagine counter arguments, post it, and keep repeating it?
How on earth (define a 1) and `(1, a) related? Do you understand scheme and what list comprehensions are? Or do you just dump "lisp, lisp, lisp, na da ...not listening...lisp, lisp" in response to everything?
'(1 2 3)
or ((lambda x x) 1 2 3)
or (defun list1 (&rest args) args)
This works because lisp expressions are lists, and the reader function uses list as an underling representation of lisp expressions. `(1 ,a)
This is a syntactic sugar to make construction of lists at read-time easily to express.Read-time construction of lists is a feature of the language which gives us macros. Not the other way around.
Defining a macro for implementing a limited functionality a language can do, which consists of just a cond is a sign of inability to grasp what features are available and how to use them in appropriate way.
We don't need some macro for doing list comprehension, we have list comprehension to write macros.
This construct list-comp - is just ugly, because it is artificial and meaningless.
The habit of piling up crap without understanding, along with over-verbosity are a signs of a typical Java dev.
btw, using such kind of language against a Russian is a shortest way to a ProblemFactory)
Work on your reading comprehension, and comprehension in general. Every fucking language has fucktard ways of contructing lists. Constructing lists and list comprehensions aren't the same thing(I am a bit weirded out that I have to point it, but with someone as dense as you, there aren't any other options).
> btw, using such kind of language against a Russian is a shortest way to a ProblemFactory)
Everytime I think online forums have hit the rock bottom, and can't go any lower, some fucktard comes along and proves me wrong. Why don't you go fuck off somewhere where people might be impressed with your imaginary tales of bad-assery? Or find other morons on youtube or something and make shit up about how badass you are, instead of wasting my time here.
EDIT: Please tell me this russian bit is your idea of humor. The alternative is depressing.