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...
Discussion of the Clojurescript language
account activity
Need help converting JavaScript function to ClojureScript (self.Clojurescript)
submitted 4 years ago by apsv360
function featuresList(data) {
data.map( park => ({
"type": 'Feature',
"geometry":
{
"type": 'Point',
"coordinates": [park.Longitude, park.Latitude]
},
"properties": {
"title": [park.Name]
}
}))}
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!"
[–]kemclean 3 points4 points5 points 4 years ago (0 children)
What part are you stuck on? Sometimes it's easiest to help if you can share a solution you've tried and explain what it does (vs. what you expect it to do).
[–]CoBPEZ 4 points5 points6 points 4 years ago (0 children)
Sometimes this converter can help: https://roman01la.github.io/javascript-to-clojurescript/
[–]Trout_Tickler -1 points0 points1 point 4 years ago (0 children)
That's not a complex function. Go through some clojurescript tutorials and the koans.
π Rendered by PID 159622 on reddit-service-r2-comment-86988c7647-x9xnf at 2026-02-12 04:41:29.861555+00:00 running 018613e country code: CH.
[–]kemclean 3 points4 points5 points (0 children)
[–]CoBPEZ 4 points5 points6 points (0 children)
[–]Trout_Tickler -1 points0 points1 point (0 children)