-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minor fixes and solution2.2.6.1_foldLeft #55
Conversation
Signed-off-by: Andreas Roehler <andreas.roehler@online.de>
Signed-off-by: Andreas Roehler <andreas.roehler@online.de>
xs.foldLeft(init){ (x, y) => x :+ y._1 :+ y._2 } | ||
} | ||
def main(args: Array[String]) = { | ||
val result: Seq[String] = this.fromPairs(List(("a","b"), ("c","<nothing>"))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would remove this
and just write val result = fromPairs ..
Signed-off-by: Andreas Roehler <andreas.roehler@online.de>
Signed-off-by: Andreas Roehler <andreas.roehler@online.de>
assert(result == expected) | ||
|
||
val a: Seq[Int] = this.fromPairs(List((1, 2), (3, 4))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is another this.fromPairs
- maybe remove it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks - 'grep' seems to be on strike here today :)
Signed-off-by: Andreas Roehler <andreas.roehler@online.de>
No description provided.