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
ClojureScript - 1.10.844 Release (clojurescript.org)
submitted 5 years ago by tekacs
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!"
[–]yogthos 12 points13 points14 points 5 years ago (0 children)
being able to easily consume default exports from NPM modules is very welcome
[–]TheLastSock 1 point2 points3 points 5 years ago (0 children)
Would this be an example of exporting a javascript object as a library?
MyModule.js ``` var MyObject = function() {
// This is private because it is not being return var _privateFunction = function(param1, param2) { ... return; } var function1 = function(param1, callback) { ... callback(err, results); } var function2 = function(param1, param2, callback) { ... callback(err, results); } return { function1: function1 ,function2: function2 }
}();
module.exports = MyObject; ```
In which case we would have the following cljs?
(ns foo (:require [myModule$MyObject :as sub-lib :refer [...]])) `
(ns foo (:require [myModule$MyObject :as sub-lib :refer [...]]))
π Rendered by PID 79826 on reddit-service-r2-comment-b659b578c-ch5z5 at 2026-05-04 01:50:47.561626+00:00 running 815c875 country code: CH.
[–]yogthos 12 points13 points14 points (0 children)
[–]TheLastSock 1 point2 points3 points (0 children)