summaryrefslogtreecommitdiff
path: root/14-the-scala-standard-library.md
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@typesafe.com>2014-03-10 16:30:45 -0700
committerAdriaan Moors <adriaan.moors@typesafe.com>2014-03-10 16:31:47 -0700
commitdf2f3f7cd69bb042a29b4fcea3ab81d641f17906 (patch)
treeecbbdbe8603b9390022e7032fbe07570843020c0 /14-the-scala-standard-library.md
parent839fd6e55b178b5c2a7aeaa7c9a542fd3637fe01 (diff)
downloadscala-df2f3f7cd69bb042a29b4fcea3ab81d641f17906.tar.gz
scala-df2f3f7cd69bb042a29b4fcea3ab81d641f17906.tar.bz2
scala-df2f3f7cd69bb042a29b4fcea3ab81d641f17906.zip
github markdown: headers
Diffstat (limited to '14-the-scala-standard-library.md')
-rw-r--r--14-the-scala-standard-library.md18
1 files changed, 6 insertions, 12 deletions
diff --git a/14-the-scala-standard-library.md b/14-the-scala-standard-library.md
index 91b9f4c73e..2ba846e3f4 100644
--- a/14-the-scala-standard-library.md
+++ b/14-the-scala-standard-library.md
@@ -1,5 +1,4 @@
-The Scala Standard Library
-==========================
+# The Scala Standard Library
The Scala standard library consists of the package `scala` with a
number of classes and modules. Some of these classes are described in
@@ -8,8 +7,7 @@ the following.
![Class hierarchy of Scala](resources/classhierarchy.pdf)
-Root Classes
-------------
+## Root Classes
Figure~\ref{fig:class-hierarchy} illustrates Scala's class
hierarchy.
@@ -114,8 +112,7 @@ be translated to an application of a [conversion method](#numeric-value-types)
`x.to$T$`. For non-numeric values $x$ the operation will raise a
`ClassCastException`.
-Value Classes
--------------
+## Value Classes
Value classes are classes whose instances are not represented as
objects by the underlying host system. All value classes inherit from
@@ -335,8 +332,7 @@ unit value `()`, `false` otherwise. The
`hashCode` method returns a fixed, implementation-specific hash-code,
The `toString` method returns `"()"`.
-Standard Reference Classes
---------------------------
+## Standard Reference Classes
This section presents some standard Scala reference classes which are
treated in a special way in Scala compiler -- either Scala provides
@@ -561,8 +557,7 @@ object Array {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-Class Node
-----------
+## Class Node
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.scala}
package scala.xml
@@ -636,8 +631,7 @@ trait Node {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-The `Predef` Object
--------------------
+## The `Predef` Object
The `Predef` object defines standard functions and type aliases
for Scala programs. It is always implicitly imported, so that all its