Floyd-Warshall algorithm: Difference between revisions
Content added Content deleted
Line 1,535: | Line 1,535: | ||
I have wrapped the Common Lisp program in a [https://roswell.github.io/ Roswell] script. |
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.) |
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.) |
||
"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. |
"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. |