car

 

 

Overview

The car function returns the head of a List. The argument to the car function is a List (a set of Pairs linked together).

Usage

The car function is used to retrieve the head of a Pair or List.

 

Syntax


Expression:

(car obj )


Arguments Name Type Description
Argument:objList Pair The target must be a pair or list.

Returns:

The head of the List.



 

Examples

Here are a number of links to Lambda coding examples which contain this instruction in various use cases.

 

Argument Types

Here are the links to the data types of the function arguments.

Pair List

Here are also a number of links to functions having arguments with any of these data types.

addMethod append apply associate
boolean c::r car cdr
compareEQ compareGE compareGT compareLE
compareLT compareNE compare compile
copy count delete dimension
display eval integer isAtom
isComplex isDate isEqual isError
isIdentical isInteger isMoney isNumber
isObject isPair isType last
length lisp list macroReplace
makeQuotedList map mapc member
money morph number objectToList
objectToMatrix objectToNumMatrix objectToNumVector objectToVector
offset pair pointer proplist
proprecord putprop quote ref
remProp reverse saveObject setCar
setCdr setLastCdr setq sizeof
sort string type writelg
writeln

Analytic Information Server (AIS)

AIS Component Systems

  • Smartbase Engine
  • QT C++ Libraries
  • MySQL Relational Database
  • AIS Lisp Libraries
  • Rapid Analytic Demo IDE