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

Strange Append behavior #80

Open
LiviuShiva opened this issue Mar 24, 2023 · 0 comments
Open

Strange Append behavior #80

LiviuShiva opened this issue Mar 24, 2023 · 0 comments

Comments

@LiviuShiva
Copy link

It seems like for version 1.4.0 the Append function returns an empty Enumerable
Ex. I:
test = Enumerable()
test.append(1)
print(test)

Returns:
[]

Expected:
[1]

Ex. II:
test = Enumerable([1, 2, 3]).append(4)
test.append(5)
print(test)

Returns:
[1, 2, 3, 4]

Expected:
[1, 2, 3, 4, 5]

I suspect that the problem comes from the concat function

I noticed that there was a problem with the previous version as well:
Ex:
test = Enumerable([1, 2, 3]).append(6)
test.append(5)

Returns:
[1, 2, 3, 6, 5, 6]

Expected:
[1, 2, 3, 6, 5]

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

1 participant