Re: Topological sort

2009-11-16 Thread Nick Day
brilliant, this has been very helpful - thanks to both for taking the time to answer! On Nov 12, 6:06 am, John Harrop jharrop...@gmail.com wrote: On Wed, Nov 11, 2009 at 2:04 PM, Nick Day nicke...@gmail.com wrote: Hi, I've been trying to implement a topological sort and have been

Topological sort

2009-11-11 Thread Nick Day
Hi, I've been trying to implement a topological sort and have been struggling a bit. I have a map of symbol vs collection of symbols like: {a [b c], b [c], c [nil]} which can be read as 'a' depends on 'b' and 'c', 'b' depends on 'c' and 'c' doesn't depend on anything. I've been trying to write

Problem using shell-out in Windows command prompt

2009-10-01 Thread Nick Day
Hey, I've just been trying to run a couple of simple commands using shell- out (e.g. (sh dir)) in a repl in Windows command prompt, but am running up against errors of the type java.io.IOException: Cannot run program dir: CreateProcess error=2, The system cannot find the file specified