- 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.
推薦閱讀
- JavaScript從入門到精通(微視頻精編版)
- Node.js Design Patterns
- Python快樂編程:人工智能深度學習基礎
- Vue.js 3.x從入門到精通(視頻教學版)
- Visual FoxPro程序設計
- Python語言實用教程
- Android Studio Cookbook
- Android Development Tools for Eclipse
- Drupal 8 Development:Beginner's Guide(Second Edition)
- Kotlin進階實戰
- Java 11 and 12:New Features
- 現代C++語言核心特性解析
- 前端架構設計
- 大話程序員:從入門到優秀全攻略
- Java 開發從入門到精通