IF, WHEN or SOME

2018-09-20 Thread Stephen Feyrer
ne”)) one NullPointerException user/eval239 (NO_SOURCE_FILE:74) user=> What is my mistake? Thanks. On 12 December 2017 at 07:52, Stephen Feyrer wrote: > Hi Tim, > > Thank you. > > > -- > Kind regards > > Stephen. > > On 11 December 2017 at 23:58, Timothy Baldridge

Re: Validate XSD 1.1

2018-05-31 Thread Stephen Feyrer
Interesting read... Prompts the question is there an alternative way to pull the library raw into a Leiningen project? I have tested and this library works. On Thursday, 31 May 2018 02:20:58 UTC+1, Matching Socks wrote: > > (A fun and enlightening discussion is here: > https://issues.apache.

Re: Validate XSD 1.1

2018-05-30 Thread Stephen Feyrer
ome steps to make a publicly acceptable resolution i.e. one that isn't a boj? Thank you. -- Regards Stephen. On Wednesday, 30 May 2018 10:02:51 UTC+1, Stephen Feyrer wrote: > > Hi Sean, > > Now that you mention it (a second time - so maybe you do need to tell me > twice

Re: Validate XSD 1.1

2018-05-30 Thread Stephen Feyrer
ath))) CompilerException java.lang.IllegalArgumentException: No matching method found: newSchema for class org.apache.xerces.jaxp.validation.XMLSchema11Factory, compiling:(form-init2829816141741533722.clj:1:20) -- Regards Stephen. On Monday, 28 May 2018 23:23:20 UTC+1, Stephen Feyrer wrote: > > Hi the

RE: Validate XSD 1.1

2018-05-29 Thread Stephen Feyrer
Hi Sean, That is defined in my core.clj. — Regards Stephen -- 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

Validate XSD 1.1

2018-05-28 Thread Stephen Feyrer
Hi there, I would to validate some XML documents in XSD version 1.1. This cutting edge standard is now all of six years old. So perhaps it is understandable that it hasn't reached the mainstream stable branches of either the Java or .NET eco-systems. For XSD version 1.0 there is https://clojars

Re: tlc Expect like library?

2018-02-13 Thread Stephen Feyrer
th cljs. core.match > might be useful for program interaction dispatch. > > On Tue, Feb 13, 2018 at 4:42 AM Stephen Feyrer > wrote: > >> Hi, >> >> I would like to ask, is there a Clojure version of the tlc expect library >> or an equivalent? >> >>

tlc Expect like library?

2018-02-13 Thread Stephen Feyrer
? Thanks. Stephen Feyrer. -- 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

Re: IF, WHEN or SOME

2017-12-11 Thread Stephen Feyrer
Hi Tim, Thank you. -- Kind regards Stephen. On 11 December 2017 at 23:58, Timothy Baldridge wrote: > I talked a bit about this in my video on Boolean Blindness: https://www. > youtube.com/watch?v=K1LaaJMscCc > > Might be worth a watch. > > On Mon, Dec 11, 2017 at 4:56

IF, WHEN or SOME

2017-12-11 Thread Stephen Feyrer
Hi there, I have been trying to shake this thought for a while now. Essentially, my thought was if you can return a function why not decision component of an IF, WHEN or SOME statement? That would give you a re-usable named choice. Then you could write: (celebration: do-something do-something-

Re: Map Keywords are functions, why not vector elements?

2017-11-19 Thread Stephen Feyrer
> l)) >> >> >> >> Hopefully that’ll give you some options to think about… >> >> >> >> Sean Corfield -- (970) FOR-SEAN -- (904) 302-SEAN >> An Architect's View -- http://corfield.org/ >> >> "If you're not annoying so

Re: Map Keywords are functions, why not vector elements?

2017-11-13 Thread Stephen Feyrer
Hi Alex, Didier, Thanks for your patience. That covers everything which I can think of and a fair bit more :) I have a bit of reading and thinking to do now. Again, thank you. -- Rule of thumb simple question, complicated answer Stephen. On 13 November 2017 at 22:09, Didier wrote: > Yo ar

Re: Map Keywords are functions, why not vector elements?

2017-11-13 Thread Stephen Feyrer
be with forethought context and or constraints... This is more of a solution (based on a lack of understanding) without a problem. If you like the problem I'm hoping to address is to reduce my lack of understanding. > > On Monday, November 13, 2017 at 3:49:41 AM UTC-6, Stephen Feyrer wr

Map Keys are functions, why not vector elements?

2017-11-13 Thread Stephen Feyrer
Hi there, This is possibly a silly question (and may have been asked before but I couldn't find earlier examples) so here it goes. We start with a form which we're all familiar with: user=> (:this {:this "is" :the "same"}) "is" Then it's not a stretch to go to: user=> (def the 1) #'user/the u

Re: An Averaging function

2014-07-12 Thread Stephen Feyrer
Hi, Just to let you guys know I am paying attention and am trying to get all my ducks in order. I will definitely check out the resources you've mentioned. Thank you. On 11 July 2014 08:11, Adrian Mowat wrote: > Hi Blake > > Brian Marick's book on FP for OO programmers is an excellent book f

Re: An Averaging function

2014-07-10 Thread Stephen Feyrer
Hi Sam, Lee. Thank you both. It would appear that I am faced with the old adage, "A little knowledge is a dangerous thing". Again thank you, you ' ve been a great help. If I may impose upon you a little further? Would either of you be able to recommend an introductory book either for Clojure o

An Averaging function

2014-07-09 Thread Stephen Feyrer
have three questions: 1. Why doesn't it work, return a value? 2. What does the error message mean? and seeing this or similar again, how do I investigate to get a meaningful Clojure solution? 3. Code Style, what can I do to improve readability and form? Thanks. -- Stephen Feyrer. -- You re

Re: newbie seq question

2014-04-13 Thread Stephen Feyrer
avenues to explore. At this stage I just want to acknowledge your response and let you know that it is very much appreciated. -- Kind regards Stephen. On 13 April 2014 07:02, François Rey wrote: > On 13/04/14 02:21, Stephen Feyrer wrote: > > > // Get the java file io library >

newbie seq question

2014-04-12 Thread Stephen Feyrer
Hey, I have hacked together this code: // Get the java file io library (import '(java.io File)) // Get some files (def f (File. "/My/files/")) (def fs (file-seq f)) // Filters for suffixes ".mp3" (def get-mp3 (filter #(.endsWith (.getName %) ".mp3") fs)) // Get the path of one mp3 (println (t