Created
January 28, 2011 02:27
-
-
Save grapswiz/799716 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* 名前と成績の組から評価を出力する *) | |
(* seiseki : string * string -> string *) | |
let seiseki pair = match pair with | |
(a, b) -> a ^ " さんの評価は " ^ b ^ " です" | |
let test1 = seiseki ("たまご", "A") = "たまご さんの評価は A です" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment