scala 的getOrElse

今天作項目的時候被scala的getOrElse的返回類型坑了好久,特意記錄以下:java 對於scala的getOrElse這個方法,其函數簽名以下express /* * Returns the option's value if the option is nonempty, otherwise * return the result of evaluating default. * @pa
相關文章
相關標籤/搜索