Hank,
Welcome. Great efforts- it certainly seems like you're learning a lot, and
quickly.
`clojure.core/slurp` is related, in case you haven't seen it
yet: https://clojuredocs.org/clojure.core/slurp
The implementation may also be
enlightening:
https://github.com/clojure/clojure/blob/clojure-
Thank for the answers.
Trying to recur with '(recur (.read bfr))' resulted in a:
Syntax error (UnsupportedOperationException) compiling recur at
(*cider-repl ~:localhost:41097(clj)*:237:9).
Can only recur from tail position
So I changed the code (see below).
And now it complains that a previous
I think at least part of the problem is your use of val in the let
statement. Inside the loop, you're testing (not (= val -1)), but val is an
immutable value defined above the loop as being the first character read
from the buffer, so it will always loop until it reads in the 0xFFF
that makes
Hi,
Your loop/recur usage is wrong, your error may be because your loop has no
halting condition.
https://clojure.org/reference/special_forms#loop
https://clojuredocs.org/clojure.core/loop
Regards
Laurent
Le samedi 25 décembre 2021 à 20:23:37 UTC+1, hank@gmail.com a écrit :
>
> Hello --
>
Hello --
Sometimes I see a notation that uses a prefix "-", as in:
user> (def -a (atom []))
#'user/-a
Is there a special meaning/convention regarding this use of a hyphen prefix?
TIA
-- Hank
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post t
Hello --
I'm learning Clojure and its Java interop stuff. I am trying to emulate
this function:
public String readAllCharsOneByOne(BufferedReader bufferedReader) throws
IOException {
StringBuilder content = new StringBuilder();
int value;
while ((value = bufferedReader.re