Haskell: Perbezaan antara semakan
Kandungan dihapus Kandungan ditambah
k bot menambah: lv:Haskell (programmēšanas valoda) |
k bot mengubah: lv:Haskell; perubahan kosmetik |
||
Baris 3: | Baris 3: | ||
Satu pentafsir Haskell ialah Hugs (Haskell User's Gofer System). |
Satu pentafsir Haskell ialah Hugs (Haskell User's Gofer System). |
||
==Contoh aturcara dalam Bahasa Hugs== |
== Contoh aturcara dalam Bahasa Hugs == |
||
module FastSort where |
module FastSort where |
||
import Gofer |
import Gofer |
||
Baris 10: | Baris 10: | ||
12): ls) (k/2) |
12): ls) (k/2) |
||
==Atur cara ''hello world''== |
== Atur cara ''hello world'' == |
||
Berikut adalah contoh [[atur cara]] ''[[hello world]]'' dalam Haskell. |
Berikut adalah contoh [[atur cara]] ''[[hello world]]'' dalam Haskell. |
||
Baris 18: | Baris 18: | ||
</source> |
</source> |
||
==Pautan luar== |
== Pautan luar == |
||
{{wikibooks|en:Haskell}} |
{{wikibooks|en:Haskell}} |
||
Baris 43: | Baris 43: | ||
[[he:Haskell]] |
[[he:Haskell]] |
||
[[la:Haskell]] |
[[la:Haskell]] |
||
[[lv:Haskell |
[[lv:Haskell]] |
||
[[hu:Haskell]] |
[[hu:Haskell]] |
||
[[nl:Haskell]] |
[[nl:Haskell]] |
Semakan pada 10:59, 1 Mac 2010
Haskell ialah sebuah bahasa pengaturcaraan kefungsian yang tulen. Bahasa ini mendapat nama daripada Haskell Curry, seorang tokoh matematik yang banyak menyumbang dalam ilmu logik kombinator.
Satu pentafsir 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)
Atur cara hello world
Berikut adalah contoh atur cara hello world dalam Haskell.
main = putStrLn "Hello, world!"
Pautan luar
Wikibuku mempunyai sebuah buku berkenaan topik: Haskell |