• Clojure
  • 5 lines
  • 229 views
  • 2 forks
  • Pasted by anonymous on July 25, 2013
1
2
3
4
5
(defn seq1
  "De-chunk potentially-chunked seq s, realizing only one element at a time."
  [s] (lazy-seq
       (when (seq s)
         (cons (first s) (seq1 (rest s))))))

Did you know? CLOSE

  • There are keyboard shortcuts!
    • When Creating A Paste
      • ALT+P Toggle Private
      • CTRL+Enter Create Paste
      • ALT+W Toggle word wrap
    • When Viewing A Paste
      • ALT+G Go to a line
      • ALT+CTRL+E Edit the paste
      • ALT+R Show the raw code
  • There are URL options!
    • When Creating A Paste
      • ?lang=Javascript to default to javascript
    • When Viewing A Paste
      • #L-N Jump to line number N
?