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

Introduce base modules #4

Merged
merged 2 commits into from
Jul 6, 2017
Merged

Introduce base modules #4

merged 2 commits into from
Jul 6, 2017

Conversation

v-ilin
Copy link
Collaborator

@v-ilin v-ilin commented Jul 4, 2017

The functions for transforming data were separated from the functions for transforming data structure.
#1

@v-ilin v-ilin added the design label Jul 4, 2017
@v-ilin v-ilin added this to the 1 milestone Jul 4, 2017
@v-ilin v-ilin self-assigned this Jul 4, 2017
@v-ilin v-ilin requested a review from vkamiansky July 4, 2017 18:56
Copy link
Owner

@vkamiansky vkamiansky left a comment

Choose a reason for hiding this comment

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

A small change required.

let find_2_and_transform_strict f_is_1 f_is_2 f_transform lst =
let f_transform_strict = function | (Some x1, Some x2) -> l(f_transform (x1, x2)) | _ -> LazyList.empty
find_2_and_transform f_is_1 f_is_2 f_transform_strict lst
Copy link
Owner

Choose a reason for hiding this comment

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

Arguably, the three functions above don't belong here. They deal with generic data which does not necessarily mean Composite instances. Moving to a separate file is advised.

@v-ilin v-ilin merged commit 9609e09 into master Jul 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants