Arc Forumnew | comments | leaders | submitlogin
2 points by proponent 5512 days ago | link | parent

Well, I can't argue with Merriam-Webster! Now, can anyone think of a macro for which the name "among" would be appropriate?


2 points by aw 5512 days ago | link

  (mac among (var expr within . body)
    `(between ,var ,expr (repeat (rand 4) ,within)
       ,@body))

  arc> (among x (range 0 10) (pr "*")
         (pr x))
  0***12*3***4***5*67**8*9*10nil

-----