You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
github にあるライブラリを使うのにローカルにインストールして云々しようとして色々試していたら id:xuwei と id:j5ik2o に github にあるライブラリ、直接使えるよ m9(^Д^)プギャー と言われて涙目でした。 んで、 あんまり知られてないし、教えてやったんだからブログに書け!! と、id:j5ik2o に脅されたので涙目で書いているところです。 import sbt._ import sbt.Keys._ object ProjectBuild extends Build { lazy val root = Project( id = "root", base = file("."), settings = Project.defaultSettings ++ Seq( name := "coderwall-bot", organization := "o
Effective Scala Marius Eriksen, Twitter Inc. marius@twitter.com (@marius) Table of Contents 序章 (Introduction) 整形: ホワイトスペース, 命名, Imports, Braces, Pattern matching, Comments Types and Generics: Return type annotations, Variance, Type aliases, Implicits Collections: Hierarchy, Use, Style, Performance, Java Collections Concurrency: Futures, Collections Control structures: Recursion, Returns, for loops
Build, Operate, and Secure Distributed Applications Simpler Concurrent & Distributed Systems Actors and Streams let you build systems that scale up, using the resources of a server more efficiently, and out, using multiple servers. Resilient by Design Building on the principles of The Reactive Manifesto Akka allows you to write systems that self-heal and stay responsive in the face of failures. Hi
この記事はpartake.inの12日目の記事です。 12/14追記: xuweiさんからツッコミ&補足をいただきました。クゥエルァラス! Scalaのライブラリについてごちゃごちゃと適当に説明 - xuwei-k's blog 合わせて読んでくださいというか先に読んでください。 最近githubのページを見てる事が多いんですけど、https://github.com/languages/Scala/most_watchedを見てたら結構知らないプロジェクトがあったので簡単なリストにしてみました。僕は、勉強会とかで「○○を知ってる人?」って聞かれたときに知らないけど見栄張って挙手して後ろめたい気持ちになることが多いので、みなさん名前だけでも覚えておくといいかと思います。 flockdb twitterで使っているライブラリで、ソーシャルグラフのデータ(誰が誰をフォローしてるとか誰が誰をブロ
概要 [/2017-01-29] 数値のマッチング [/2017-01-31] match式の値 [/2020-10-01] 数値以外のマッチング [/2011-02-27] 型のマッチング [/2011-08-15] マッチした値の取得 [/2017-01-29] ガード条件(if) [/2017-01-29] matchの省略 [/2017-02-02] unapply・unapplySeq [/2017-01-29] 概要 match式は、値に応じて処理を分岐させる。 単純に値が一致するかどうか(Javaのswitch相当)だけでなく、パターンマッチングで色々な条件でマッチさせることが出来る。 値 match { case パターン1 => 処理1 case パターン2 => 処理2 ~ } matchは「式」なので、値を返すことも出来る。 val 変数 = 値 match { ca
Other Languages: 한국어 Русский 简体中文 About Scala school started as a series of lectures at Twitter to prepare experienced engineers to be productive Scala programmers. Scala is a relatively new language, but draws on many familiar concepts. Thus, these lectures assumed the audience knew the concepts and showed how to use them in Scala. We found this an effective way of getting new engineers up to spe
Scala2.8.0では、scala.collection.JavaConversionsオブジェクトのメソッドをインポートしておくと、変換を自動的に行ってくれるようになる。 したがって、Javaコレクションに対しScalaコレクションのメソッドを適用すれば、JavaコレクションからScalaコレクション(のラッパークラス)に暗黙に変換される。 scala> import scala.collection.JavaConversions._ import scala.collection.JavaConversions._ scala> val jl = new java.util.ArrayList[Int] jl: java.util.ArrayList[Int] = [] scala> jl += 123 res0: scala.collection.mutable.Buffer[I
foreachによるループ - Scala覚書 概要 foreachでどういった書き方ができるかをさらっと試してみる。 @Author mwSoft @Date 2010/11/19 @Env Scala2.8 foreach その1(引数省略) foreachはScalaの目玉商品の1つ。 下記は0~9までループする例。 def main(args: Array[String]) { // 0から9までの数字でループしながら、値をprint関数に渡す (0 to 9).foreach(print) //=> 0123456789 } これは何をやっているかというと、まず、(0 to 9)はイテレート可能なRangeを返す。イテレート可能なものはforeachで回せる。もちろんArrayとかListとかも回せる。 foreachの引数には関数が渡せる。ここではprint関数(Javaで言う
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く