Skip to content
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

Results class, what is it for? #1

Open
mdbs99 opened this issue Jun 4, 2018 · 2 comments
Open

Results class, what is it for? #1

mdbs99 opened this issue Jun 4, 2018 · 2 comments

Comments

@mdbs99
Copy link

mdbs99 commented Jun 4, 2018

I haven't understand this part. There is a loop and the val variable is replaced every time in the loop. Why is that?

@fabriciofx
Copy link
Owner

fabriciofx commented Jun 4, 2018

@ mdbs99 Yeah, you're completely right. It's not the best way to do it. In this code we just want to execute all statements and get only the last result. We can do it using a for, but in this way it's cleaner ...
But I'll keep this issue open to think better on it. Any suggestion?

@mdbs99
Copy link
Author

mdbs99 commented Jun 4, 2018

Any suggestion?

Concatenate all results before return the value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants