Arc Forumnew | comments | leaders | submitlogin
1 point by arnoooooo 5587 days ago | link | parent

I never liked the array and hash accessors in CL, so I use a reader macro to access hash/sequence elements, and call functions stored in value slots :

   {sequence 1} -> (elt array 1)
   {sequence 1 2} -> (subseq sequence 1 2)
   {hash 'test} -> (gethash 'test hash)
   {function 2} -> (funcall function 2)
I can also do

  (setf {sequence 1} 2).