This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-07-23
Channels
- # beginners (20)
- # boot (7)
- # cider (115)
- # cljsrn (13)
- # clojars (1)
- # clojure (122)
- # clojure-italy (23)
- # clojure-spec (60)
- # clojurescript (74)
- # data-science (7)
- # datomic (26)
- # emacs (8)
- # graphql (1)
- # lumo (26)
- # music (1)
- # off-topic (1)
- # re-frame (9)
- # ring (3)
- # rum (1)
- # spacemacs (4)
- # uncomplicate (6)
- # vim (7)
@swizzard if the ns is test.mover, the file path should be test/test/mover.clj
test/mover.clj implies an ns called mover (and top level namespaces aren't recommended)
Hi, when I want to manipulate the session to weaken the application, where would I go in ring? Where is the session created? I can't find it.
hi all, i have the following function:
(ns digitizer.core)
(defn digitize [n]
(->> n
(str)
(reverse)))
when i run (digitize 3210)
, (\0 \1 \2 \3)
is returned. what are the backslashes for?reverse works on arbitrary collections which a string can become when you call seq
on it, but it ends up as a sequence of chars, which reverse will happily reverse
there's clojure.string
that contains a reverse
function for your needs as it knows you want the reversed sequence of characters as a string
in this case i need to cast chars into ints. it's for this exercise https://www.codewars.com/kata/convert-number-to-reversed-array-of-digits/train/clojure