- 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 WebAssembly
- 低代碼平臺開發實踐:基于React
- Java高并發核心編程(卷1):NIO、Netty、Redis、ZooKeeper
- 深入理解C指針
- OpenCV 3 Blueprints
- Java 9 Programming By Example
- Java EE Web應用開發基礎
- 分布式數據庫HBase案例教程
- 嵌入式C編程實戰
- Wearable:Tech Projects with the Raspberry Pi Zero
- Java 7 Concurrency Cookbook
- Access 2016數據庫應用與開發:實戰從入門到精通(視頻教學版)
- Python 3.8編程快速入門
- 從零開始:Qt可視化程序設計基礎教程