Basic Lisp techniques by Cooper D.J.

By Cooper D.J.

Show description

Read Online or Download Basic Lisp techniques PDF

Similar software development books

Accelerating Process Improvement Using Agile Techniques

Accelerating technique development utilizing Agile options explains how agile programming is utilized to straightforward procedure development. by way of utilizing agile thoughts, IT firms can accelerate strategy development projects, reduce the assets those projects require, and maximize the advantages of technique development.

What Computing Is All About

This can be a self-contained dialogue of primary issues in laptop technology, consisting of assurance of application semantics, automata conception, application and circuit layout, concurrent courses and compilation. Formal proofs and sensible purposes are supplied through the textual content.

The Struts Framework Practical Guide for Java Programmers

Pressestimmen"I heartily propose this publication. due to the fact an early reproduction of Sue's manuscript hit my table, it has no longer left my facet and is now good thumbed and amassing espresso stains from average use. " Simon Chappell - Java Programming professional with a Fortune a hundred corporation. " "Sue Spielman launches the aspiring Java J2EE programmer on an exhilarating exploration of Struts established MVC structure and applies this data in making a state-of-the-art internet software.

An Introduction to Software Engineering

This booklet is an advent to software program engineering and perform addresses bothagile and plan-driven software program engineering. The publication is very meant foran advent to software program engineering undergraduate path. The identify exhibits it's a partial advent simply because just one bankruptcy, an appendix on UML, bargains with layout.

Additional info for Basic Lisp techniques

Example text

Another difference between symbols and strings is that CL provides a number of operations for manipulating strings that do not work for symbols: CL-USER(25): (setq c "Jane dates only Lisp programmers") "Jane dates only Lisp programmers" CL-USER(26): (char c 3) #\e CL-USER(27): (char ’xyz 1) Error: ‘XYZ’ is not of the expected type ‘STRING’ CL-USER(29): (subseq c 0 4) "jane" CL-USER(30): (subseq c (position #\space c)) " dates only lisp programmers" CL-USER(31): (subseq c 11 (length c)) "only lisp programmers" 52 CHAPTER 3.

Later we will learn how to avoid nested if statements. 32 CHAPTER 3. THE CL LANGUAGE In English, you might read this function to say “If the list is empty, return NIL. Otherwise, if the desired item is the same as the first of the list, return the entire list. ” Note that, for the purposes of any kind of logical operators, returning any non-NIL value is “as good as” returning T. So the possible return-values of the member function are as good as returning T or NIL as far as any logical operators are concerned.

For testing and “hacking” at the command prompt, this is acceptable, but in a finished program all such global variables should really be formally declared with defparameter or defvar. 10 Adding Elements to a List To add a single element to the front of a list, you can use the function cons: CL-USER(13): (cons ’a ’(b c d)) (A B C D) Cons is actually the low-level primitive function upon which many of the other list-constructing functions are built. ” As with append, cons is non-destructive, meaning it does no side-effecting (modification) to its arguments.

Download PDF sample

Rated 4.21 of 5 – based on 9 votes