Simple Sand Samples |
説明のないとってもシンプルなサンプルプログラム集
COBOL | awk | C言語 | D言語 | GO言語 | Lua | Vim |
bash | Perl | Gauche | Clojure | CLISP | EmacsLisp | VimScript |
tcsh | Ruby | Groovy | Java | C# | VBScript | JavaScript |
Io言語 | Python | Erlang | Scala | VB.NET | Excel/VBA | PHP |
Tcl | Haskell | OCaml | PowerShell | Windows | Unix/Linux |
Haskell > リストの順序を反転する
list-reverse.hs
|
|
$ runghc list-reverse.hs
["apple","banana","1234","5678","candy"]
["candy","5678","1234","banana","apple"]
$
["apple","banana","1234","5678","candy"]
["candy","5678","1234","banana","apple"]
$
* 確認環境 Debian Linux(Wheezy)