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

There's no "union" function, use "intersect" #109

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mem
Copy link

@mem mem commented Jan 11, 2018

Even if the documentation says there's an "union" function that computes
the union of two sets, looking at Hugo's source code, there's no such
function.

Use "intersect" instead. It's more appropriate, too, because it will
eliminate duplicates in the two lists, if there are any.

Signed-off-by: Marcelo E. Magallon [email protected]

Even if the documentation says there's an "union" function that computes
the union of two sets, looking at Hugo's source code, there's no such
function.

Use "intersect" instead. It's more appropriate, too, because it will
eliminate duplicates in the two lists, if there are any.

Signed-off-by: Marcelo E. Magallon <[email protected]>
@mem
Copy link
Author

mem commented Jan 11, 2018

Sorry, I didn't realize I had an old hugo binary in my path :-(

But I still think it's better to use intersect than union. Would you like me to correct the commit message?

@vjeantet
Copy link
Owner

Are you sure the behaviour of intersect == Union ?

@mceachen
Copy link

The functions are absolutely not equivalent. See https://gohugo.io/functions/intersect/ and https://gohugo.io/functions/union/.

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.

3 participants