def myAssert(predicate: () => Boolean) =
if (!predicate())
throw new AssertionError
myAssert(() => 5 > 3)
change type () => Boolean to => Boolean:
def myAssert(predicate: => Boolean) =
if (!predicate())
throw new AssertionError
myAssert(5 > 3)
def myAssert(predicate: () => Boolean) =
if (!predicate())
throw new AssertionError
myAssert(() => 5 > 3)
def myAssert(predicate: () => Boolean) =
if (!predicate())
throw new AssertionError
myAssert(() => 5 > 3)
change type () => Boolean to => Boolean:
def myAssert(predicate: => Boolean) =
if (!predicate())
throw new AssertionError
myAssert(5 > 3)
status | not learned | measured difficulty | 37% [default] | last interval [days] | |||
---|---|---|---|---|---|---|---|
repetition number in this series | 0 | memorised on | scheduled repetition | ||||
scheduled repetition interval | last repetition or drill |