on 01-Sep-2014 (Mon)

Flashcard 149624515

Tags
#bonds #finance
Question
The Interpolated Spread or I-spread or ISPRD is the difference between the yield to maturity of the bond and
the linearly interpolated yield to the same maturity on an appropriate reference curve

status measured difficulty not learned 37% [default] 0

Parent (intermediate) annotation

Open it
The Interpolated Spread or I-spread or ISPRD is the difference between the yield to maturity of the bond and the linearly interpolated yield to the same maturity on an appropriate reference curve

Original toplevel document

I-spread - Wikipedia, the free encyclopedia

Flashcard 149625233

Tags
#calculus #mathematics
Question
Elasticity is [change of what with respect to change of what].
percent change of the output divided by percent change of the input

status measured difficulty not learned 37% [default] 0

Flashcard 149631720

Tags
#odersky-programming-in-scala-2ed #scala
Question
The only identifiers that can be used as prefix operators are [...], -, !, and ~.
+

status measured difficulty not learned 37% [default] 0

Parent (intermediate) annotation

Open it
The only identifiers that can be used as prefix operators are +, -, !, and ~.

Original toplevel document (pdf)

cannot see any pdfs

Flashcard 149631727

Tags
#odersky-programming-in-scala-2ed #scala
Question
The only identifiers that can be used as prefix operators are +, [...], !, and ~.
-

status measured difficulty not learned 37% [default] 0

Parent (intermediate) annotation

Open it
The only identifiers that can be used as prefix operators are +, -, !, and ~.

Original toplevel document (pdf)

cannot see any pdfs

Flashcard 149631734

Tags
#odersky-programming-in-scala-2ed #scala
Question
The only identifiers that can be used as prefix operators are +, -, [...], and ~.
!

status measured difficulty not learned 37% [default] 0

Parent (intermediate) annotation

Open it
The only identifiers that can be used as prefix operators are +, -, !, and ~.

Original toplevel document (pdf)

cannot see any pdfs

Flashcard 149631741

Tags
#odersky-programming-in-scala-2ed #scala
Question
The only identifiers that can be used as prefix operators are +, -, !, and [...].
~

status measured difficulty not learned 37% [default] 0

Parent (intermediate) annotation

Open it
The only identifiers that can be used as prefix operators are +, -, !, and ~.

Original toplevel document (pdf)

cannot see any pdfs

Flashcard 149631748

Tags
#odersky-programming-in-scala-2ed #scala
Question
x *= y + 1
means the same as:
x *= (y + 1)
because [...], even though the operator’s first character is *, which would suggest a precedence higher than +.
*= is classified as an assignment operator whose precedence is lower than +

status measured difficulty not learned 37% [default] 0

Parent (intermediate) annotation

Open it
x *= y + 1 means the same as: x *= (y + 1) because *= is classified as an assignment operator whose precedence is lower than +, even though the operator’s first character is *, which would suggest a precedence higher than +.

Original toplevel document (pdf)

cannot see any pdfs

Flashcard 149631760

Tags
#horstmann-java8-for-really-impatient #java #java8 #lambda-expressions
Question
Can you assign a lambda expression to a variable of type Object and why?
No — Object is not a functional interface.

status measured difficulty not learned 37% [default] 0

pdf

cannot see any pdfs

Annotation 149631771

#default-methods #horstmann-java8-for-really-impatient #java #java8
You can never make a default method that redefines one of the methods in the Object class.

Parent (intermediate) annotation

Open it
You can never make a default method that redefines one of the methods in the Object class. For example, you can’t define a default method for toString or equals, even though that might be attractive for interfaces such as List. As a consequence of the “classes win” rule, such

Original toplevel document (pdf)

cannot see any pdfs

Annotation 149631778

#default-methods #horstmann-java8-for-really-impatient #java #java8
you can’t define a default method for toString or equals, even though that might be attractive for interfaces such as List. As a consequence of the “classes win” rule, such a method could never win against Object.toString or Object.equals.

Parent (intermediate) annotation

Open it
You can never make a default method that redefines one of the methods in the Object class. For example, you can’t define a default method for toString or equals, even though that might be attractive for interfaces such as List. As a consequence of the “classes win” rule, such a method could never win against Object.toString or Object.equals.

Original toplevel document (pdf)

cannot see any pdfs

Flashcard 149631783

Tags
#default-methods #horstmann-java8-for-really-impatient #java #java8
Question
Can you define a default method for toString or equals and why? It might be attractive for interfaces such as List.
As a consequence of the “classes win” rule, such a method could never win against Object.toString or Object.equals.

status measured difficulty not learned 37% [default] 0

Parent (intermediate) annotation

Open it
you can’t define a default method for toString or equals, even though that might be attractive for interfaces such as List. As a consequence of the “classes win” rule, such a method could never win against Object.toString or Object.equals.

Original toplevel document (pdf)

cannot see any pdfs

Annotation 149631816

#collections #scala #tuples

Given the following definition:

val t = (4,3,2,1)


To access elements of a tuple t, you can use method t._1 to access the first element, t._2 to access the second, and so on.

Parent (intermediate) annotation

Open it
Given the following definition: val t = (4,3,2,1) To access elements of a tuple t, you can use method t._1 to access the first element, t._2 to access the second, and so on. For example, the following expression computes the sum of all elements of t: val sum = t._1 + t._2 + t._3 + t._4

Original toplevel document

Scala Tuples
e1, Tuple2, Tuple3 and so on. There currently is an upper limit of 22 in the Scala if you need more, then you can use a collection, not a tuple. For each TupleN type, where 1 <= N <= 22, Scala defines a number of element-access methods. <span>Given the following definition: val t = (4,3,2,1) To access elements of a tuple t, you can use method t._1 to access the first element, t._2 to access the second, and so on. For example, the following expression computes the sum of all elements of t: val sum = t._1 + t._2 + t._3 + t._4 You can use Tupel to write a method that takes a List[Double] and returns the count, the sum, and the sum of squares returned in a three-element Tuple, a Tuple3[Int, Double, Double]. The

Flashcard 149631821

Tags
#collections #scala #tuples
Question

Given the following definition:

val t = (4,3,2,1)


To access elements of a tuple t, you can use method [...]to access the first element, [...] to access the second, and so on.

t._1, t._2 and so on

status measured difficulty not learned 37% [default] 0

Parent (intermediate) annotation

Open it
Given the following definition: val t = (4,3,2,1) To access elements of a tuple t, you can use method t._1 to access the first element, t._2 to access the second, and so on.

Original toplevel document

Scala Tuples
e1, Tuple2, Tuple3 and so on. There currently is an upper limit of 22 in the Scala if you need more, then you can use a collection, not a tuple. For each TupleN type, where 1 <= N <= 22, Scala defines a number of element-access methods. <span>Given the following definition: val t = (4,3,2,1) To access elements of a tuple t, you can use method t._1 to access the first element, t._2 to access the second, and so on. For example, the following expression computes the sum of all elements of t: val sum = t._1 + t._2 + t._3 + t._4 You can use Tupel to write a method that takes a List[Double] and returns the count, the sum, and the sum of squares returned in a three-element Tuple, a Tuple3[Int, Double, Double]. The

Flashcard 149631870

Tags
#currying #functions #scala
Question

Curried functions are defined with multiple parameter lists, as follows:

def strcat(s1: String)(s2: String) = s1 + s2


Alternatively, you can also use the following syntax to define a curried function:

[...]
def strcat(s1: String) = (s2: String) => s1 + s2

status measured difficulty not learned 37% [default] 0

Parent (intermediate) annotation

Open it
Curried functions are defined with multiple parameter lists, as follows: def strcat(s1: String)(s2: String) = s1 + s2 Alternatively, you can also use the following syntax to define a curried function: def strcat(s1: String) = (s2: String) => s1 + s2

Original toplevel document

Scala Currying Functions
esume WritingComputer GlossaryWho is Who Scala Currying Functions Advertisements Previous Page Next Page Currying transforms a function that takes multiple parameters into a chain of functions, each taking a single parameter. <span>Curried functions are defined with multiple parameter lists, as follows: def strcat(s1: String)(s2: String) = s1 + s2 Alternatively, you can also use the following syntax to define a curried function: def strcat(s1: String) = (s2: String) => s1 + s2 Following is the syntax to call a curried function: strcat("foo")("bar") You can define more than two parameters on a curried function based on your requirement. Let