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

Fix: Extract collections from registers #122

Merged
merged 2 commits into from
May 18, 2018

Conversation

ergomorphic
Copy link
Collaborator

Resolves #88
Resolves #98

@@ -104,7 +109,7 @@ case class AND(input: Value[SCollection[SBoolean.type]])

//todo: reduce such boilerplate around AND/OR, folders, map etc
override def transformationReady: Boolean =
input.evaluated && input.items.forall(_.evaluated)
input.evaluated && input.fold(_.items.forall(_.evaluated), c => true)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are you reducing in transformationReady() ?

Copy link
Collaborator Author

@ergomorphic ergomorphic May 18, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not reducing. This probably confusing function name. It actualy does pattern matching ConcreteColletion and CollectionConstant cases. Check the function.
I can rename it in the next PR.
This pattern matching happens in many places now, so I incapsulated it in a function.

@kushti kushti merged commit f4abc7c into ScorexFoundation:master May 18, 2018
@ergomorphic ergomorphic deleted the i88 branch May 19, 2018 08:10
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

Successfully merging this pull request may close these issues.

None yet

2 participants