beginners

Getting started with Clojure/ClojureScript? Welcome! Also try: https://ask.clojure.org. Check out resources at https://gist.github.com/yogthos/be323be0361c589570a6da4ccc85f58f.
Thomas 2021-04-15T16:20:56.159800Z

Is there a way to see the code behind default functions like map, reduce, etc? I'm coding in visual studio code with the calva Getting Started REPL. Please explain like I'm five, if at all possible, because I am not only new to Clojure, but to programming in general. Thanks for any help. My goal is to adapt map so that it returns a set instead of a list. I am doing a task from Brave Clojure.

borkdude 2021-04-15T16:21:37.160500Z

@oyvind.holt In the REPL, you can type (source map) and it will print the source of the clojure.core map function. But quite possibly you can also navigate to its definition in Calva (depending on your project setup).

Thomas 2021-04-15T16:22:08.160900Z

Thanks, Bork. I'll try that.

borkdude 2021-04-15T16:22:33.161300Z

You can also just navigate here https://github.com/clojure/clojure/blob/master/src/clj/clojure/core.clj and search for things like "defn map"

Thomas 2021-04-15T16:23:46.162300Z

Do you know how I navigate to the relevant REPL in VSC? I tried in what's called the output.calva-repl, but that doesn't seem to work. I'm very, very green.

borkdude 2021-04-15T16:23:59.162500Z

@oyvind.holt Ask in #calva

Thomas 2021-04-15T16:24:12.162700Z

Alright, thanks

pez 2021-04-15T16:55:46.165700Z

@oyvind.holt , in VS Code there are commands for both peek and goto definition. The command palette is your friend. These features are also available via hovering with the mouse and pressing cmd/ctrl.

Thomas 2021-04-15T17:13:09.166100Z

@pez Appreciated, søta bror 🙂

❤️ 1
marcosemanuelss 2021-04-15T19:42:42.167300Z

Hello guy! My name is Marcos Emanuel. I'm software developer and I'm starting in the clojure world. ✌️

🍺 1
8
👋 29
1
1
1