Arc Forumnew | comments | leaders | submitlogin
3 points by almkglor 5880 days ago | link | parent

Avoiding rev:

  (def >> args
    ; throw an error here so that user won't get
    ; mysterious errors in the 'reduce part
    (if (no args)
      (err "'>> requires at least one argument"))
    (reduce (fn (a b) b.a) args))