Skip to content

Commit 55e5c46

Browse files
Removed duplicated article "the"
1 parent 6198c0e commit 55e5c46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/json/bynameparameter.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"modules": [
44
{
55
"preparagraph": "`() => Int` is a Function type that takes a `Unit` type. `Unit` is known as `void` to a Java programmer. The function returns an `Int`. You can place this as a method parameter so that you can you use it as a block, but still it doesn't look quite right.",
6-
"code": "def calc(x: () => Int): Either[Throwable, Int] = {\n try {\n Right(x()) //An explicit call the the x function\n } catch {\n case b: Throwable => Left(b)\n }\n}\n\nval y = calc {() => //Having explicitly declaring that Unit is a parameter with ()\n 14 + 15\n}\n\ny should be (__)",
6+
"code": "def calc(x: () => Int): Either[Throwable, Int] = {\n try {\n Right(x()) //An explicit call the x function\n } catch {\n case b: Throwable => Left(b)\n }\n}\n\nval y = calc {() => //Having explicitly declaring that Unit is a parameter with ()\n 14 + 15\n}\n\ny should be (__)",
77
"solutions": [
88
"Right(29)"
99
],

0 commit comments

Comments
 (0)