1
我想用oz語言做一個列表: 但我不明白 這是我的簡單想法,但它不是正確的,你能幫我嗎我想用oz語言做一個列表
declare
fun {Permute L }
if L==nil then nil
else L.2.1|L.1|L.2.2
end
end
fun {Trie L }
if L==nil then nil
elseif L.1 < L.2.1 then L
else {Permute L}
end
{Trie L.2 }
end
{Browse {Trie [3 4 2 1 5 ]}}
之前你問你應該尋找和研究。我很快找到[Lazy quicksort](https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=oz%20sort%20list)。 – MikeJRamsey56