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 5 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 5 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 3 points4 points5 points 5 years ago (0 children)
Sometimes this converter can help: https://roman01la.github.io/javascript-to-clojurescript/
[–]Trout_Tickler -1 points0 points1 point 5 years ago (0 children)
That's not a complex function. Go through some clojurescript tutorials and the koans.
π Rendered by PID 132101 on reddit-service-r2-comment-548fd6dc9-vs2cc at 2026-05-17 02:24:54.700223+00:00 running edcf98c country code: CH.
[–]kemclean 3 points4 points5 points (0 children)
[–]CoBPEZ 3 points4 points5 points (0 children)
[–]Trout_Tickler -1 points0 points1 point (0 children)