Computers don't accuse, they process data. And they are not (yet?)
capable of reading a user's intentions.
On 11 Jan., 19:02, Cedric Greevey wrote:
> It seems dubious to me that it accuses users of cheating when they
> clearly had no intent to cheat. Is this intended behavior of 4Clojure
> or a b
Concering your quote "my interest in programming is not limited to data
science/ML...I am potentially interested in building apps": my repository
https://github.com/kloimhardt/bb-web has a set of examples, starting with a
10 line html file (directly containing Clojure code to be edited, no
com
Dear Sezal,
would you have a look at my project
https://kloimhardt.github.io/cljtiles.html ? It is intended for Clojure
beginners, one solves pzzles without using the keyboard. It has not been
used in practice though.
kind regards
Markus
sezal...@gmail.com schrieb am Donnerstag, 18. Februar
cool, the code repository is https://github.com/kloimhardt/clj-tiles
sezal...@gmail.com schrieb am Samstag, 20. Februar 2021 um 03:38:22 UTC+1:
> Thanks Markus,
> We are discussing the content for the workshop this Monday. We will go
> through your project for this.
>
> -Sezal
&
The same question was asked on
https://clojurians-log.clojureverse.org/clojure-spec/2018-01-19
but I did not find an answer.
An example, where defrecord works fine but deftype fails:
(do
(require '[clojure.spec.alpha :as s])
(defprotocol Foo (foo [this]))
(defrecord Bar [bar] Foo (foo [this
rks because
> defrecord implements map.
>
> On Wednesday, July 4, 2018 at 12:47:26 PM UTC+2, markus...@gmail.com
> wrote:
>>
>> The same question was asked on
>> https://clojurians-log.clojureverse.org/clojure-spec/2018-01-19
>> but I did not find an answer.
&
So is it best practice to implement map in the deftype to make it
spec-able? Are there examples somewhere that show how to do this in a
canonical way?
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googl
Just in case someone stumbles over this post, I found a simple solution
which works for me:
(do
(require '[clojure.spec.alpha :as s])
(import '(clojure.lang ISeq))
(defprotocol Foo (foo [this]))
(defrecord Bar [bar] Foo (foo [this] (.bar this)))
(deftype Baz [bar]
Foo (foo [this]
Consider the following cloure.spec-alpha2 example:
(def v [0])
(s/def ::thevec vector?)
(s/def ::data (s/coll-of number? :kind ::thevec))
(s/valid? ::data v) ;;=> returns false, my expectation is that it should
return true
(s/explain ::data v) ;;=> prints "Success!", which inconsistent to s/va
PM UTC+2, Alex Miller wrote:
>
>
>
> On Thursday, September 26, 2019 at 7:41:20 AM UTC-5, Markus Agwin wrote:
>>
>> Consider the following cloure.spec-alpha2 example:
>>
>> (def v [0])
>> (s/def ::thevec vector?)
>> (s/def ::data (s/coll-of numb
*Knowledge prerequisites:* Clojure, performance tuning, Cloud computing
*Mentor:* Markus Hjort
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are
Hello,
if I am not too dumb, it seems that comparing for classes does not work in
case statements, like:
=> (class '(1 2 3))
clojure.lang.PersistentList
=> (case (class '(1 2 3))
clojure.lang.PersistentList :amazing
:so-sad)
:so-sad
I do not need a workaround - that is already
Hi,
I am Markus, also working on this project. Thanks for your reply.
The errors on the grammar resulted from the reducing of the original one -
just to give a minimal example. The original one featured the issues you
mentioned in addition to other logial operators like nand, xor, equivalent
Is conf what you're looking for?
http://clojure.github.com/clojure/clojure.core-api.html#clojure.core/cons
~Kasper
On 11/30/11 2:27 PM, Paweł Łoziński wrote:
Hi everybody,
I'd like to create a lazy sequence which has first element x and all
the rest from another lazy sequence. I couldn't find
14 matches
Mail list logo