This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-10-13
Channels
- # announcements (2)
- # beginners (15)
- # calva (6)
- # cider (3)
- # cljsrn (1)
- # clojure (33)
- # clojure-hk (4)
- # clojure-uk (9)
- # clojurescript (13)
- # cursive (5)
- # datomic (6)
- # figwheel-main (1)
- # fulcro (5)
- # graalvm (12)
- # instaparse (1)
- # kaocha (1)
- # nrepl (6)
- # off-topic (5)
- # pedestal (10)
- # quil (8)
- # reitit (2)
- # ring (5)
- # shadow-cljs (10)
- # sql (1)
- # vim (13)
Hi everyone. I have a function taking and output stream. I want to provide an output stream object that builds up the data in memory. I don't want to write to a file, or stream it (because its size bound and what I'm passing it to doesn't support readers/writers/streaming). How do I create a "memory output stream" or a "memory writer" in clojure?
never mind. found it.
(java.io.ByteArrayOutputStream.)
and then on that output stream (.toString my-output-stream)
Hello 🙂
Could anyone please tell me the best way to read an array size and array elements from standard input
in clojure?
for
is there, but maybe there’s a more idiomatic solution.
I would say it depends on what your output should look like .. you can do it with many functions
Okay, so I need to read in the size of an array and then read the elements of that array.
3
1
2
3
Hello everyone
i use s/def to add record for spec, how can i remove it is there something like unregister ?
Use s/def again with a nil spec
is there a scope for defining specs, for example, can i do this on function level so the defined specs only defined withing functions and outside it No ?
If you’re using the registry, no. But you can use s/valid? etc with spec definitions directly (except for the attributes in s/keys)
what i'm trying to do is validate data via function
i need help making compojure routes work with destructuring
I want to auto-render various pages when the user navigates to lessons/S1&L7&P5 for example, so they will go to Section 1 Lesson 7 Part 5 ... is this the easiest way to put arguments together, or are there nicer symbols i can use to separate vars in compojure-land?
Hello, all! I just wanted to pop in and say this: as I am implementing each part of the project I'm working on in Clojure, I find myself falling more and more in love with the language. The further in I go, and mind you I've only touched what I believe to be the surface layers, it just gets better and better. Coming from OO (http://vb.net, python, Ruby, etc.) This is a gosh darned fantasy come true. I've never felt more enthralled by programming than when I use Clojure. Thank you guys for the support you provided during my baby steps, I'm now walking, and soon I'll be at full sprint!