This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-07-23
Channels
- # babashka (1)
- # beginners (26)
- # clj-kondo (15)
- # cljdoc (2)
- # clojure (14)
- # clojure-europe (13)
- # clojure-norway (6)
- # conjure (2)
- # etaoin (4)
- # events (2)
- # expound (2)
- # fulcro (1)
- # hyperfiddle (6)
- # london-clojurians (2)
- # malli (3)
- # meander (10)
- # minecraft (3)
- # nbb (34)
- # off-topic (10)
- # pathom (13)
- # reagent (7)
- # vim (3)
How can I quote “127.0.0.1” for use in regex? The value “127.0.0.1" is generated dynamically and not from literal, so I cannot do something like #“127\.0\.0\.1” but instead I shall go with (re-pattern (quote some-var))
(java.util.regex.Pattern/quote "127.0.0.1")
should work. Wrapped in re-pattern
, of course.
@mauricio.szabo and generally spock
question: how do I import a library, for example clpb
in the current swi
version of the library?
Ok, created the channel #spock
About that, I believe you can run (spock/solve '(:- (use_module (library clbp))))
But I don't know, Spock is honestly on its very beginning, so if this don't work I'll look at it 🙂
Ok, sorry for the delay, the suggested snippet doesn't work, because:
No implementation of method: :to-prolog of protocol: #'spock.swi/AsProlog
found for class: nil