This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| val scalacOptions ++= Seq( | |
| "-encoding", | |
| "utf-8", // Specify character encoding used by source files. | |
| "-deprecation", // Emit warning and location for usages of deprecated APIs. | |
| "-explaintypes", // Explain type errors in more detail. | |
| "-feature", // Emit warning and location for usages of features that should be imported explicitly. | |
| "-language:existentials", // Existential types (besides wildcard types) can be written and inferred | |
| "-language:experimental.macros", // Allow macro definition (besides implementation and application) | |
| "-language:higherKinds", // Allow higher-kinded types | |
| "-language:implicitConversions", // Allow definition of implicit functions called views |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <!-- Popperjs --> | |
| <script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js" integrity="sha256-BRqBN7dYgABqtY9Hd4ynE+1slnEw+roEPFzQ7TRRfcg=" crossorigin="anonymous"></script> | |
| <!-- Tempus Dominus JavaScript --> | |
| <script src="https://cdn.jsdelivr.net/npm/@eonasdan/[email protected]/dist/js/tempus-dominus.min.js" crossorigin="anonymous"></script> | |
| <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@eonasdan/[email protected]/dist/css/tempus-dominus.min.css" crossorigin="anonymous"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package example | |
| import scala.util.Random | |
| object Hello extends App { | |
| val items = (0 to 10).toList.map(i => s"Item $i") | |
| val numberOfBuckets = 10 | |
| val working: Map[String, Double] = items.map(i => (i, Random.nextDouble())).toMap | |
| val bucketSize = 1.0 / numberOfBuckets |
OlderNewer