您当前的位置: 首页 >  scala

段智华

暂无认证

  • 0浏览

    0关注

    1232博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

第87讲:Scala中使用For表达式做查询

段智华 发布时间:2015-08-22 11:17:27 ,浏览量:0

第87讲:Scala中使用For表达式做查询

case class Book(title : String , authors : List[String]) object For_Query {

  def main(args: Array[String]) {     val books: List[Book] = List(     Book("Structure and Interpretation ", List("Abelson , Harold", "Sussman")),     Book("Principles of Compiler Design",       List("Aho, Alfred", "Ullman, Jeffrey")),     Book("Programming in Modula-2", List("Wirth, Niklaus")),     Book("Introduction to Functional Programming", List("Bird, Richard")),     Book("The Java Language Specification",       List("Gosling, James", "Joy, Bill", "Steele, Guy", "Bracha, Gilad")))     //    val result = for(b

关注
打赏
1659361485
查看更多评论
立即登录/注册

微信扫码登录

0.0402s