The example of a program of the Descartes language

1. Hello

 $ descartes hello

'hello, world' are displayed.


2. Append

 $ descartes append

List and list are connected and list is made.


3. List utility

 $ descartes list

reverse: The inversion of list. 
member:     It is judged whether the member enters in list.
flatten:    The element of list in list is taken out and 
            flat list is made.
last: The element of the last of list is taken out.
difference: List is compared with list and a different 
            element is extracted.
equal_sets: List is compared with list and it is investigated 
            whether all the elements are in agreement. 
            The element of list is in random order.
intersect:  List is compared with list and a common element 
            is extracted.


4. Calc program

 $ descartes calc

Expression is calculated and a result is displayed.

calc : 
10+(20-5)*3
 =  55

5. TinyRuby


