Scala - Does imports are relative? Code Example

The code for Does imports are relative?

// Yes! Scala imports are relative.
// Please read the comments 
// for for better understanding

import scala.collection.mutable._ 
import collection.immutable._  // Since "scala" is already imported 
import _root_.scala.collection.parallel._  // full path from real "root" 
Code by IncludeHelp, on August 9, 2022 05:07

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.