s-clauses :refer :clause] spec:
:clojure.core.specs.alpha/ns-refer
:import - failed: #{:load} at: [:ns-clauses :load :clause] spec:
:clojure.core.specs.alpha/ns-load
:import - failed: #{:gen-class} at: [:ns-clauses :gen-class :clause] spec:
:clojure.core.specs.alpha/ns-gen-class
Br,
Mamun
O
Thanks
It is working with (defmethod mycomp ~m [~'_] ~m))
_ is also clojure valid symbol identifier. I miss that point.
Br,
Mamun
On Tuesday, December 26, 2017 at 11:59:23 PM UTC+1, Gary Verhaegen wrote:
>
> The spec is correct; your code is wrong and I don't know
#{(quote
&)}
:form :clojure.core.specs.alpha/binding-form))), Extra input In: [0 0]
val:
com.mxsys.psql.component/_ fails spec:
:clojure.core.specs.alpha/arg-list at:
[:args :bs :arity-n :args] predicate: vector?
Br,
Mamun
On Friday, December 8, 2017 at 8:35:39 PM UTC+1,
]))
;;Success
(s/explain-str :app/person
{:person/lname "Abdullah"
:person/fname "Mamun"} )
;;Success
(s/explain-str :app/person
{:person/lname "Abdullah"
:person/fname "Mamun"
:id "
Please find github link in bellow
https://github.com/Mamun/spec-model
Br,
Mamun
On Sunday, November 27, 2016 at 11:37:30 PM UTC+1, Mamun wrote:
>
>
>
> It is very common that application needs different format of data,
> sometime only entity, sometimes with entity type or list o
ill be understandable to all team member within project.
spec-model is solution for it. Like UML tools, define business model as
data. spec-model will generate spec for it.
Br,
Mamun
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to
/int-in 10 15)) "12") ;; Failed
(s/explain (and (s/conformer x-int?) (s/int-in 10 15)) 11 ) ;; Passed
In here, explain does not work because of and. Is there any way to pass
conform value to next spec?
Br,
Mamun
--
You received this message because you are subscribed to the Goo
When function is throwing exception because of argument. I would prefer to
throw IllegalArgumentException not AssertionError.
(defn check [type data]
(if (sp/valid? type data)
true
(throw (IllegalArgumentException. (sp/explain type data)
Br,
Mamun
On Friday, September 16
:id string?))
(in-spec Credit
(s/def ::id number?))
(s/valid? :User/id "Musterman")
(s/valid? :Credit/id 12345)
(s/valid? :Credit/id "Error")
Although I am creating namespace here but it is not visible here.
I would like to know Is there any better way to do or any core f
To me, Changing type or order is a lack of facility for basic task.
In the end comping task is also become more hard.
Have you tried to use Specter? Why do you not consider Specter lib?
Br,
Mamun
On Friday, September 9, 2016 at 12:23:37 PM UTC+2, Colin Yates wrote:
>
> Hi all,
>
d display ::a
Br,
Mamun
--
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 moderated - please be patient with your
first post.
To unsubscr
Please skip my last email. It is working.
Br,
Mamun
On Friday, July 22, 2016 at 11:50:08 AM UTC+2, Mamun wrote:
>
> Hi
>
> Does clojure.set/rename-keys work with namespaced keys?
>
> (clojure.set/rename-keys {:fname "Musterman"} {:fname :person/fname})
>
map.
Clojure version: [org.clojure/clojure "1.9.0-alpha10"]
Br,
Mamun
--
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 moderated -
excellent, as I could reuse exiting spec. But how I dissoc id from
exiting spec.
Only way is now to do is define again in application layer.
(s/def ::person-ui-spec (s/keys ::req-un [::channel ::fname ::lname]))
Do you consider dissoc in spec for keys?
Br,
Mamun
bnp paribas groups
;
(clojure.spec/alt :i clojure.core/int? :s clojure.core/string?)
Clojure version: [org.clojure/clojure "1.9.0-alpha10"]
Br,
Mamun
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@go
not. But error should display in same namespace
also.
Clojure version: [org.clojure/clojure "1.9.0-alpha8"]
Br,
Mamun
--
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
Excellent set of new predicates. What about date predicate?
It would be nice if there are also date predicate as an example in bellow
date?
date-past?
date-future?
Br,
Mamun
On Tuesday, June 7, 2016 at 7:38:34 PM UTC+2, Alex Miller wrote:
>
> Clojure 1.9.0-alpha5 is now ava
Hi All,
Find link in bellow
https://github.com/Mamun/tie/tree/master/tiesql
Clojurescript/om example
https://github.com/Mamun/tiesql-om
Still work in progress but look forward to get your feedback.
Br,
Mamun
--
You received this message because you are subscribed to the Google
Groups
HI Ambrose,
Thanks for your reply. But why this one is working?
(defn check-nil [v]
{:pre [nil? v]}
v)
Br,
Mamun
On Thursday, February 13, 2014 11:51:31 AM UTC+1, Ambrose Bonnaire-Sergeant
wrote:
>
> Hi Mamun,
>
> This is the correct syntax (you're mi
,
Mamun
--
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 moderated - please be patient with your
first post.
To unsubscribe from this group, sen
quot;by_controry_code" :query
SELECT count(*) AS count FROM user WHERE country_code = :country_code
-- }
-- {:doc "Counts the users in a given country." :name "by_id" :query
SELECT count(*) AS count FROM user WHERE id = :id
-- }
Hi Mamun,
> Hmm...I hadn't p
Hi Kris,
It's look fine. Is is possible to to add more query in one sql file? I
mean- I'd like to create one sql file and store all query on that file.
BR,
Mamun
On Monday, November 11, 2013 2:38:27 PM UTC+1, Kris Jenkins wrote:
>
> Thanks David, that's nice of you t
Hello
New Leiningen template for Clojure and Clojurescript project. This might
helpful to them who are coming from rails like framework and would love to
see first before coding.
https://github.com/Mamun/web-app
Create new project:
lein new web-app hello
Run application:
lein ring server
oking something to build CRUD based web application using datomic,
enlive, compojure. You can try this
https://github.com/Mamun/clojure-web-app. It is not framework but template.
BR,
Mamun
On Sunday, September 8, 2013 10:31:13 PM UTC+2, Mateusz Dobek wrote:
>
> Is Clojure good choice
Hi
Building a CRUD based web application using datomic. It might help some one
who are just start using datomic to build CRUD based web application.
URL: https://github.com/Mamun/clojure-web-app.git
Application feature-
Web Authentication
CRUD view for domain object
Pagination for list
Hi Carlo,
Thanks. Now it is fine.
Regards,
Mamun
On Tuesday, October 23, 2012 5:24:41 AM UTC+2, Carlo wrote:
>
> Hey Mamun,
>
> Your problem is that your ^{:test true} metadata isn't being applied
> to your functions, as you might expect, but rather to the var that i
*
(println (str "-->" form))))
(map #(process %1) f*)
Regards,
Mamun
On Monday, October 22, 2012 5:45:21 PM UTC+2, Jim foo.bar wrote:
>
> well not quite!
> you need (-> form
>var
>meta
>
defn process [form]
(do
*//Would like to access meta data of form*
(println (str "-->" form
(map #(process %1) f*)
Does any one have any idea?
Regards,
Mamun
--
You received this message because you are subscribed to the Google
Groups "Clojure" gro
Hi All,
I've just started to learn Clojure and interested to see more
ClojureScript. It is really nice stuff- data structure, function and code
sharing. But Is there any reason to make different file extension (*.clj
and *.cljs) for Clojure and ClojureScript?
Regards,
Mamun
--
You rec
Hi,
When I run the following code, I got false for (identical? 128 128).
What is the different between = and identical?
(println (= 4 4))
true
(println (= 128 128))
true
(println (identical? 4 4))
true
(println (identical? 128 128))
false
Regards,
Mamun
--
You received this message because
30 matches
Mail list logo