Skip to content

Instantly share code, notes, and snippets.

@yagince
Created April 3, 2013 12:56
Show Gist options
  • Select an option

  • Save yagince/5300977 to your computer and use it in GitHub Desktop.

Select an option

Save yagince/5300977 to your computer and use it in GitHub Desktop.
配列に代入される場合
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