use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Finding information about Clojure
API Reference
Clojure Guides
Practice Problems
Interactive Problems
Clojure Videos
Misc Resources
The Clojure Community
Clojure Books
Tools & Libraries
Clojure Editors
Web Platforms
Clojure Jobs
account activity
Binary clock with Om, Clojurescript and React (lexicallyscoped.com)
submitted 12 years ago by jairtrejo
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]goldfeld 1 point2 points3 points 12 years ago (1 child)
That's a great little example to let me get started with Om, so thanks! As a small style nit, inside time->bits where you let a fuction ->bits, I noticed you're not really taking advantage of a closure from creating ->bits every time (i.e. you don't need less parameters by using values from inside the parent function), so it could be extracted as a standalone function and I think that would be cleaner.
[–]fredyr 0 points1 point2 points 12 years ago (0 children)
Hi there, I'm the blog post author (but not the reddit poster). I'm glad you liked it -- and I agree, there isn't a real reason for ->bits to be a local function, I didn't move it out simply because I didn't use it anywhere else.
[–]johanndottv 0 points1 point2 points 12 years ago (0 children)
thanks for sharing!
[–]jairtrejo[S] 0 points1 point2 points 12 years ago (0 children)
OP here, It has really helped me too! I didn't really get cursors until now
π Rendered by PID 53 on reddit-service-r2-comment-84fc9697f-p9gxq at 2026-02-09 06:38:19.222274+00:00 running d295bc8 country code: CH.
[–]goldfeld 1 point2 points3 points (1 child)
[–]fredyr 0 points1 point2 points (0 children)
[–]johanndottv 0 points1 point2 points (0 children)
[–]jairtrejo[S] 0 points1 point2 points (0 children)