Thread: Clojure
View Single Post
  #5  
Old 09-27-2020, 09:48 AM
fragment's Avatar
fragment fragment is offline
mesospheric bore
 
Join Date: Jul 2005
Location: New Zealand
Gender: Male
Posts: VMCDXLIV
Blog Entries: 8
Default Re: Clojure

Quote:
Originally Posted by ceptimus View Post
So I think, "I'll use a loop that loads one puzzle at a time, then pass that puzzle to the solver, and once the solver has finished, move on to the next puzzle." I also want to print each puzzle to the screen, along with its line-number in the .sdm file. How to do that without an incrementing loop variable? It's possible, of course - and once you begin to think in the Clojure way it begins to look elegant.
Yeah, I don't really have the hang of it. R apparently performs best in a functional style but also allows all the procedural stuff. So I end up with an ugly kludge instead. Which is OK for quick data tinkering and analyses but I'd like to produce cleaner code.
Reply With Quote
Thanks, from:
ceptimus (09-27-2020), Stormlight (09-28-2020)
 
Page generated in 0.33975 seconds with 11 queries