Skip to content

Commit 0951b4e

Browse files
authored
Merge pull request #1843 from ac27182/patch-1
emphasising keywords in the glossary
2 parents 26a50b7 + 3f72444 commit 0951b4e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

_glossary/index.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -122,25 +122,25 @@ A _free variable_ of an expression is a variable that’s used inside the expres
122122
A _function_ can be [invoked](#invoke) with a list of arguments to produce a result. A function has a parameter list, a body, and a result type. Functions that are members of a class, trait, or singleton object are called [methods](#method). Functions defined inside other functions are called [local functions](#local-function). Functions with the result type of `Unit` are called [procedures](#procedure). Anonymous functions in source code are called [function literals](#function-literal). At run time, function literals are instantiated into objects called [function values](#function-value).
123123

124124
* #### function literal
125-
A function with no name in Scala source code, specified with function literal syntax. For example, `(x: Int, y: Int) => x + y`.
125+
A function with no name in Scala source code, specified with _function literal_ syntax. For example, `(x: Int, y: Int) => x + y`.
126126

127127
* #### function value
128-
A function object that can be invoked just like any other function. A function value’s class extends one of the `FunctionN` traits (e.g., `Function0`, `Function1`) from package `scala`, and is usually expressed in source code via [function literal](#function-literal) syntax. A function value is “invoked” when its apply method is called. A function value that captures free variables is a [closure](#closure).
128+
A function object that can be invoked just like any other function. A _function value_’s class extends one of the `FunctionN` traits (e.g., `Function0`, `Function1`) from package `scala`, and is usually expressed in source code via [function literal](#function-literal) syntax. A function value is “invoked” when its apply method is called. A function value that captures free variables is a [closure](#closure).
129129

130130
* #### functional style
131131
The _functional style_ of programming emphasizes functions and evaluation results and deemphasizes the order in which operations occur. The style is characterized by passing function values into looping methods, immutable data, methods with no side effects. It is the dominant paradigm of languages such as Haskell and Erlang, and contrasts with the [imperative style](#imperative-style).
132132

133133
* #### generator
134-
A generator defines a named val and assigns to it a series of values in a [for expression](#for-expression). For example, in `for(i <- 1 to 10)`, the generator is “`i <- 1 to 10`”. The value to the right of the `<-` is the [generator expression](#generator-expression).
134+
A _generator_ defines a named val and assigns to it a series of values in a [for expression](#for-expression). For example, in `for(i <- 1 to 10)`, the generator is “`i <- 1 to 10`”. The value to the right of the `<-` is the [generator expression](#generator-expression).
135135

136136
* #### generator expression
137-
A generator expression generates a series of values in a [for expression](#for-expression). For example, in `for(i <- 1 to 10)`, the generator expression is “`1 to 10`”.
137+
A _generator expression_ generates a series of values in a [for expression](#for-expression). For example, in `for(i <- 1 to 10)`, the generator expression is “`1 to 10`”.
138138

139139
* #### generic class
140-
A class that takes type parameters. For example, because `scala.List` takes a type parameter, `scala.List` is a generic class.
140+
A class that takes type parameters. For example, because `scala.List` takes a type parameter, `scala.List` is a _generic class_.
141141

142142
* #### generic trait
143-
A trait that takes type parameters. For example, because trait `scala.collection.Set` takes a type parameter, it is a generic trait.
143+
A trait that takes type parameters. For example, because trait `scala.collection.Set` takes a type parameter, it is a _generic trait_.
144144

145145
* #### guard
146146
See [filter](#filter).
@@ -158,7 +158,7 @@ An object is _immutable_ if its value cannot be changed after it is created in a
158158
The _imperative style_ of programming emphasizes careful sequencing of operations so that their effects happen in the right order. The style is characterized by iteration with loops, mutating data in place, and methods with side effects. It is the dominant paradigm of languages such as C, C++, C# and Java, and contrasts with the [functional style](#functional-style).
159159

160160
* #### initialize
161-
When a variable is defined in Scala source code, you must initialize it with an object.
161+
When a variable is defined in Scala source code, you must _initialize_ it with an object.
162162

163163
* #### instance
164164
An _instance_, or class instance, is an object, a concept that exists only at run time.

0 commit comments

Comments
 (0)