If you do not want the elements evaluated, write it like this: '(a b …). This is equivalent to (quote (list a b …)) (number-sequence n m step) → returns a list of a range of numbers, from n to m, in increment of step. (mapcar function sequence) → Apply function to each element of sequence, and make a list of the results. sequence may be a list, a vector, a bool-vector, or a string. The lambda above means function. It let you define a function in the middle of your code. The form is (lambda (args) body). For example, (lambda (x y) (+ x y)) is a function that takes two arguments, x and y, and returns their sum. Another common form to loop thru a list is using the while function. In each iteration, pop is used to reduce the list. Another important datatype similar to list & vector is called Association List (aka alist). It is similar to Python Dictionary, Ruby Hash Table. See: (info '(elisp) Association Lists'). Source.


Яндекс.Метрика Рейтинг@Mail.ru Free Web Counter
page counter
Last Modified: April 23, 2016 @ 12:02 pm