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

add haskell powerlist function #103

Merged
merged 1 commit into from
Oct 16, 2018
Merged

add haskell powerlist function #103

merged 1 commit into from
Oct 16, 2018

Conversation

freyrdanielsson
Copy link
Contributor

@freyrdanielsson freyrdanielsson commented Oct 15, 2018

Description

I added a powerlist function written in Haskell.

Input parameter is a list L and the return value are all sublists of L 👍

#66

@freyrdanielsson freyrdanielsson changed the title 3add haskell powerlist function add haskell powerlist function Oct 15, 2018
Copy link
Member

@dnery dnery left a comment

Choose a reason for hiding this comment

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

Thank you for the PR! 😃

How does your code handle lists with duplicate elements? I can't read Haskell very well, sorry 😅

@dnery dnery merged commit 5cc8c7c into pirataspinhal:master Oct 16, 2018
@freyrdanielsson
Copy link
Contributor Author

freyrdanielsson commented Oct 16, 2018

Hi @dnery !

It treats duplicated elements as separate, it would be possible to turn the list into a set to eliminate duplicates though 🤔...

image

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