Haskell: Perbezaan antara semakan
Kandungan dihapus Kandungan ditambah
Tiada ringkasan suntingan |
Tiada ringkasan suntingan |
||
Baris 4: | Baris 4: | ||
module FastSort where |
module FastSort where |
||
import Gofer |
import Gofer |
||
samsort 1 = sorting [] 0 1 |
samsort 1 = sorting [] 0 1 |
||
where sorting ls k [] = head(merepairs ls 0) |
where sorting ls k [] = head(merepairs ls 0) |
Semakan pada 04:53, 19 Januari 2007
Haskell ialah bahasa berasaskan fungsi. Satu penterjemah untuk Haskell ialah Hugs (Haskell User's Gofer System).
Contoh Aturcara Dalam Bahasa Hugs
module FastSort where import Gofer samsort 1 = sorting [] 0 1 where sorting ls k [] = head(merepairs ls 0) 12): ls) (k/2)