Quote:
Originally Posted by ceptimus
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.