Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

TXR Lisp:

  (each ((file *args*))
    (catch
      (dohash (k v [group-reduce (hash) identity (op succ @1)
                                 (file-get-lines file)
                                 0])
        (put-line `@v\t@k`))
      (error (e)
        (put-line e *stderr*))))


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: