Git Product home page Git Product logo

forvendettaw / scalafaq Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jasonding1354/scalafaq

0.0 1.0 0.0 732 KB

An introduction of Scala learning and some frequently asked questions(FAQ);有关Scala的学习笔记,记录Scala的常用语法及标准库的部分设计原理

Home Page: https://github.com/jasonding1354/ScalaFAQ#scalafaq

License: MIT License

Jupyter Notebook 90.20% Scala 0.92% CSS 1.53% XSLT 7.35%

scalafaq's Introduction

ScalaFAQ


本项目是根据《Programming Scala》、《Scala Cookbook》、《Scala for the Impatient》等书的学习示例进行的提炼总结,还包含了很多Scala的基本知识点和技术细节。希望通过该项目的总结能够及时总结Scala编程遇到的常见问题和解决方法,对Scala语法和应用有更加深入的理解。

感谢jupyter-scala项目让我可以在jupyter notebook上编写Scala程序,并进行交互式的总结。


基本概念

介绍了偏函数、Future、递归技巧、类型推断、Option类型、参数化类型等几个概念和基本方法

介绍了无参数方法、for推导式、异常处理、惰性求值、枚举、trait等几个概念和方法

模式匹配

隐式转换

介绍了有关隐式参数的基本方法和规则

介绍了隐式转换的基本概念,介绍了Map中的->表达式的隐式转换原理,通过隐式转换为scala.StringContext方法添加新的字符串插入器

函数式编程

介绍了函数式编程的一些基本概念,包括匿名函数、闭包、尾递归、偏函数、偏应用函数、柯里化等

介绍了函数式数据结构的基本特点和主要类型

介绍了遍历、映射、过滤、折叠、归约和向左向右遍历等操作的基本原理

函数式编程语言通过组合器来实现软件复用组件,将数据和需要实现的行为分离,从而能够实现更加复杂的结构

面向对象

类型系统

介绍了Scala类型系统中的参数化类型以及型变(variance)标记

介绍类型边界以及使用类型边界解决型变故障的问题

介绍了使用虚类型来定义按照一定顺序流程的工作流设计问题的解决方法

并发与Actor

该示例模拟了场景渲染过程中驱动actor和绘图actor的信息交互过程

Scala集合库

介绍了Scala集合库的主要集合类,介绍了Vector、List、Stream、ArrayBuffer的基本原理

介绍了集合库继承层次中Traversable、Iterable、Seq等特质的基本原理

介绍了List的编程实例

scalafaq's People

Contributors

jasonding1354 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.