 (ns language.protocol)
 
-
+;extend protocols to existing types
 (defprotocol Matrix
   "Protocol for working with 2d data structures"
   (lookup [matrix i j])

(vec "123")
(apply map vector [[1 2 3] [4 5 6] [7 8]])




  (cols [x] [])
  (dims [x] [0 0])

  #_((Class/forName "[[D")
  (lookup [arr i j]
          (aget arr i j))
  (update [arr i j val]
          (aset arr i j val))
  (rows [arr]
        (map vec arr))
  (cols [arr]
