- Learning Scala Programming
- Vikash Sharma
- 73字
- 2021-06-30 19:07:51
Unit
Scala's Unit is a subtype of AnyVal, and the implementation contains the equals method, which returns a true value if the passed argument is also a Unit which means a value (), that is, just a pair of parentheses otherwise false. Other methods are hashCode and toString, which return an implementation-specific hash code and () respectively, because Unit has only one value: (), which is equivalent to Java's void type.
推薦閱讀
- Learn ECMAScript(Second Edition)
- JavaScript Unlocked
- Practical DevOps
- Blockly創意趣味編程
- Modern JavaScript Applications
- Swift細致入門與最佳實踐
- 深入淺出Go語言編程
- C編程技巧:117個問題解決方案示例
- 跟戴銘學iOS編程:理順核心知識點
- Monitoring Docker
- Java Web動態網站開發(第2版·微課版)
- Learning D3.js 5 Mapping(Second Edition)
- 城市信息模型平臺頂層設計與實踐
- SOA Patterns with BizTalk Server 2013 and Microsoft Azure(Second Edition)
- Django 3 Web Development Cookbook