{"provider_name":"Hatena Blog","blog_url":"https://plasticscafe.hatenadiary.org/","author_url":"https://blog.hatena.ne.jp/plasticscafe/","image_url":null,"url":"https://plasticscafe.hatenadiary.org/entry/20100914/1284436772","blog_title":"Reinvention of the Wheel","version":"1.0","author_name":"plasticscafe","height":"190","description":"[\u307e\u3068\u3081] LL\u8133\u304cscala\u306e\u52c9\u5f37\u3092\u59cb\u3081\u305f\u3088 LL\u8133\u304cscala\u306e\u52c9\u5f37\u3092\u59cb\u3081\u305f\u3088 \u305d\u306e66 Scala\u30b3\u30c3\u30d7\u672c19\u7ae0\u306e\u7d9a\u304d\u3092\u3084\u3063\u3066\u3044\u304d\u307e\u3059\u3088\u30fc\u3001\u4eca\u56de\u306f\u524d\u56de\u4f5c\u6210\u3057\u305f\u95a2\u6570\u578b\u5f85\u3061\u884c\u5217Queue\u30af\u30e9\u30b9\u3092\u6539\u826f\u3057\u3064\u3064\u578b\u30d1\u30e9\u30e1\u30fc\u30bf\u306b\u3064\u3044\u3066\u307f\u3066\u3044\u304d\u307e\u3059\u3088\u3002\u3061\u306a\u307f\u306b\u524d\u56de\u5b9f\u88c5\u3057\u305fQueue\u30af\u30e9\u30b9\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u306d\u30fc class Queue[T]( // \u5f85\u3061\u884c\u5217\u306e\u6b63\u9806\u30ea\u30b9\u30c8 private val leading:List[T], // \u5f85\u3061\u884c\u5217\u306e\u9006\u9806\u30ea\u30b9\u30c8 private val trailing:List[T] ){ // 2\u3064\u306e\u30ea\u30b9\u30c8\u306e\u540c\u671f\u3092\u3068\u308b\u51e6\u7406\u3067\u3059 private def mirror = { if\u2026","published":"2010-09-14 12:59:32","type":"rich","width":"100%","provider_url":"https://hatena.blog","categories":["scala"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fplasticscafe.hatenadiary.org%2Fentry%2F20100914%2F1284436772\" title=\"LL\u8133\u304cscala\u306e\u52c9\u5f37\u3092\u59cb\u3081\u305f\u3088 \u305d\u306e67 - Reinvention of the Wheel\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"LL\u8133\u304cscala\u306e\u52c9\u5f37\u3092\u59cb\u3081\u305f\u3088 \u305d\u306e67"}