https://learninghub.kx.com/forums/topic/how-scan-works-and-the-difference-between-scan-and
What is the difference between scan and \?
show USTour:([]StartCity:`Boston`NewYork`Washington`Miami`Austin`Chicago;EndCity:`NewYork`Washington`Miami`Austin`Chicago`Boston;wp:0 1 1 1 1 0)
show route:USTour[`StartCity]!USTour[`EndCity]
route scan `NewYork //returns `NewYork`Washington`Miami`Austin`Chicago`Boston
In this situation, I can't seem to use the backslash (I get an error). However, if I want a termination condition (a while loop!) then I need to use the backslash:
(`Austin )route\ `NewYork //returns `NewYork`Washington`Miami`Austin
How can I know which one to use? When is the backslash interchangeable with scan?