Edited, memorised or added to reading list

on 15-Nov-2014 (Sat)

Do you want BuboFlash to help you learning these things? Click here to log in or create user.

Flashcard 149630928

Tags
#odersky-programming-in-scala-2ed #scala
Question
How to apply array of strings to echo?
val arr = Array("What's", "up", "doc?")

def echo(args: String*) =
  for (arg <- args) println(arg)
Answer
add colon and _* symbol to the argument:

echo(arr: _*)


statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







Flashcard 149630943

Tags
#odersky-programming-in-scala-2ed #scala
Question
How to call this function with named parameters instead of speed(100, 10)?
def speed(distance: Float, time: Float): Float =
  distance / time
Answer
Use equal sign: speed(distance = 100, time = 10)


statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







#economics #money
The lender is left with the IOU which (together with interest thereon) must be worth as much as the gold coins OR ELSE HE WOULD NOT HAVE LENT OUT THE GOLD COINS IN THE FIRST PLACE

statusnot read reprioritisations
last reprioritisation on reading queue position [%]
started reading on finished reading on

Mark Wadsworth: Glad to have cleared that up.
anks of the power to create money" (FT 24.April) 14 November 2014 19:30 Mark Wadsworth said... "If the money lender hands over the gold coins as a loan, he will be left with a paper i.o.u and no real assets at all."<span>The lender is left with the IOU which (together with interest thereon) must be worth as much as the gold coins OR ELSE HE WOULD NOT HAVE LENT OUT THE GOLD COINS IN THE FIRST PLACE!!!!!!!! "What is he supposed to live on? Is he going to loan out the paper i.o.u as that's all he's got left?"FFS, grow up. What do you think bankers live off????? 15 Novem




splitting the zero - asset and liability
#economics #money
  1. Robert took a loan at RBS, so he signed a contract to repay RBS £10,000, which is legally enforcible, so RBS has an asset (Robert's promise).
  2. ​Robert, having committed to pay RBS £10,000 back, wants to receive his ‘loan’. So RBS opens up [a deposit] account for him, and types in £10,000. So, now RBS has a liability now as well (on Robert's demand, the money can be withdrawn from his deposit account).

statusnot read reprioritisations
last reprioritisation on reading queue position [%]
started reading on finished reading on

Mark Wadsworth: Positive Money
00 over a period of five years, plus interest. This legally enforceable contract represents a future income stream for the bank, and when the bank comes to draw up its balance sheet it will be included as an additional asset worth £10,000. <span>Robert, having committed to pay the bank £10,000, wants to receive his ‘loan’. So RBS opens up [a deposit] account for him, and types in £10,000. This is recorded as a liability on RBS’s balance. Notice that no money was transferred or taken from any other account, the bank simply updated a computer database. A bank does not ‘lend money’ – to lend one must have money to lend in t