Floyd-Warshall algorithm: Difference between revisions

Line 1,535:
I have wrapped the Common Lisp program in a [https://roswell.github.io/ Roswell] script.
 
Notice how in Common Lisp you have to specially quote the name of a function to call that function as an argument, whereas in Scheme no such thing is necessary. (In fact, a Scheme procedure does not really have a name; you are giving the name of a variable that holds the procedure.) This further difference is not apparent, but in Scheme '''lambda''' is a fundamental construct, whereas in Common Lisp '''lambda''' is a macro.
 
"Looping" (or tail recursion) is done differently, although it is common for a Common Lisp-like '''loop''' macro to be available in Scheme. A Common Lisp-like '''format''' also often is available.
1,448

edits