We often refer to functions which return #t or #f as predicates, and in SWC-LISP, the convention is to name those functions ending with a question mark. It is an s-expression, but more than that it is a value, number, boolean Boolean is a data type that can be either True or False. We use the same kind of notation and terms to discuss lists.Ītom a single 'thing' - the smallest unit thing in LISP. 2 is the second thing, and all the way at the end, the term n representing the last thing in that sequence is the "nth" thing. When referring to any specific 'thing' in that sequence, we talk about its position. ![]() n, where the first couple things give you an idea of how the sequence goes (in this case incrementing by 1), the ellipses (.) indicate it continues. Notation for a sequence of things is often 1 2.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |