0
我試圖找出如何運行的代碼標準元語言:試圖找出如何運行的代碼標準元語言
smallest [5, ~4, 3]; returns ~4
fun smallest L =
if null (tl L)
then hd L
else if hd L < smallest (tl L)
then hd L
else smallest (tl L);
我試圖找出如何運行的代碼標準元語言:試圖找出如何運行的代碼標準元語言
smallest [5, ~4, 3]; returns ~4
fun smallest L =
if null (tl L)
then hd L
else if hd L < smallest (tl L)
then hd L
else smallest (tl L);
你需要一個SML解釋器,或compilor。有多種可供選擇,但SML/NJ最有可能是最知名/最常用的。
其他包括(但不限於)Moscow ML(mosml),MLKit和MLton。 MLKit和MLton是編譯器,SML/NJ和MosML是解釋器。
wikipedia article on SML是您瞭解SML的更好的起點。
我推薦PolyML。這裏有ML的一些更好的文檔。
好的,謝謝!請將此標記爲已解決。 –
@xprogrammerx:您必須通過單擊答案左側的複選標記來完成此操作。 :) –