Difference between revisions of "Manuals/calci/CAR"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "=CAR(Array)= *returns the head of the array ==Description== *First element of the array is returned as a value ==ZOS== Available in ZOS also ==Examples== CAR(1..10) g...")
 
Line 2: Line 2:
  
 
*returns the head of the array
 
*returns the head of the array
 +
 +
*CDR(Array) gives the tail of the array
  
 
==Description==
 
==Description==
Line 17: Line 19:
  
 
gives 1
 
gives 1
 +
 +
CDR(1..10)
 +
 +
gives
 +
 +
2 3 4 5 6 7 8 9 10
 +
  
 
==Related Videos==
 
==Related Videos==

Revision as of 22:31, 12 February 2020

CAR(Array)

  • returns the head of the array
  • CDR(Array) gives the tail of the array

Description

  • First element of the array is returned as a value


ZOS

Available in ZOS also

Examples

CAR(1..10)

gives 1

CDR(1..10)

gives

2 3 4 5 6 7 8 9 10


Related Videos

See also


References