-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jinhyuk Jeon
committed
Aug 31, 2018
1 parent
ef1cec4
commit e91f633
Showing
2 changed files
with
52 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
let rec merge (l1,l2) = | ||
match (l1,l2) with | ||
| ([], _) -> l2 | ||
| (_, []) -> l1 | ||
| (h1::t1, h2::t2) -> h1::h2::merge(t1,t2) | ||
|
||
|
||
|
||
let rec printer msg = | ||
match msg with | ||
| [] -> () | ||
| h::t -> | ||
print_int h; | ||
printer t | ||
|
||
let greeter = merge([1;2;3],[4;5;6]) | ||
|
||
let _ = printer greeter |
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