Created
April 3, 2013 12:56
-
-
Save yagince/5300977 to your computer and use it in GitHub Desktop.
配列に代入される場合
This file contains hidden or 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
| package valueclass.memory.array | |
| object ValueClass_04 extends App { | |
| case class Hoge(val hoge: String) extends AnyVal | |
| val hoge = Hoge("aaaa").hoge | |
| val array = Array[Hoge](Hoge("str")) | |
| val list = List[Hoge](Hoge("str")) | |
| val seq = Seq[Hoge](Hoge("str")) | |
| val set = Set[Hoge](Hoge("str")) | |
| val map = Map[Hoge, Hoge](Hoge("key") -> Hoge("value")) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment