  Examples for  : Homoiconic JS with clojure syntax , s - expressions & macros
;
   ( C ) Copyright 2015    
;
;  All rights reserved. This program and the accompanying materials
;  are made available under the terms of the Eclipse Public License v1.0
;  which accompanies this distribution, and is available at
   -v10.html
;
;  Contributors:
        
;

     poli ( vektory ) .


  Pole = = vektory   ( immutable )   v Clojure !
(def pole [1 2 3 4])

      prvku pole
(aget pole 1)

  přečtení vybraného prvku z pole
(def x (aget pole 1))

  změna   v poli
(aset pole 0 1000)
(aset pole 2 "Hello")

   
(set! (aget pole 2) 999)


; dvourozměrné pole (matice)
(def matice [[1 2 3] [4 5 6] [7 8 9]])

  nepravidelná matice
(def matice2 [[1] [2 3] [4 5 6] [7 8 9 10]])




  All rights reserved. This program and the accompanying materials
  are made available under the terms of the Eclipse Public License v1.0
  which accompanies this distribution, and is available at

  Contributors:

 dvourozměrné pole (matice)
  Examples for  : Homoiconic JS with clojure syntax , s - expressions & macros
   ( C ) Copyright 2015    
   -v10.html
        

     poli ( vektory ) .


  Pole = = vektory   ( immutable )   v Clojure !
(def pole [1 2 3 4])

      prvku pole
(aget pole 1)

  přečtení vybraného prvku z pole
(def x (aget pole 1))

  změna   v poli
(aset pole 0 1000)
(aset pole 2 "Hello")

   
(set! (aget pole 2) 999)


(def matice [[1 2 3] [4 5 6] [7 8 9]])

  nepravidelná matice
(def matice2 [[1] [2 3] [4 5 6] [7 8 9 10]])

