- Learn Scala Programming
- Slava Schmidt
- 74字
- 2021-06-10 19:35:49
Polymorphism and higher order functions
Until now, we've played with functions that operate on only one type of data (monomorphic functions). Now, we will finally apply our type system knowledge to build functions that work for multiple types. Functions that take type parameters are called polymorphic functions similar to polymorphic methods implemented in an object-oriented hierarchy of classes (subtype polymorphism). For functions in Scala, it is called parametric polymorphism.
推薦閱讀
- Practical Data Analysis Cookbook
- PHP 從入門到項目實踐(超值版)
- 基于免疫進化的算法及應用研究
- Wireshark Network Security
- Internet of Things with Intel Galileo
- 大學計算機基礎實驗指導
- Raspberry Pi Home Automation with Arduino(Second Edition)
- 響應式架構:消息模式Actor實現與Scala、Akka應用集成
- Instant PHP Web Scraping
- Kubernetes進階實戰
- Scala編程(第5版)
- Clojure for Java Developers
- Natural Language Processing with Python Quick Start Guide
- 嵌入式C編程實戰
- Effective C++:改善程序與設計的55個具體做法(第三版)中文版(雙色)