Skip to content

replace Collections.swap() with Kotlin's 'also' #47

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

Merged
merged 2 commits into from
Aug 9, 2025

Conversation

KonstantinKhan
Copy link
Contributor

Replace Collections.swap() with Kotlin's also for more idiomatic swapping.

Refactoring #2

@github-actions github-actions bot added the type: algorithm Classic algorithms and data structure implementations label Aug 7, 2025
@KonstantinKhan KonstantinKhan force-pushed the replace-collections-swap branch from 83ea820 to 2f1645e Compare August 7, 2025 09:30
@KonstantinKhan KonstantinKhan changed the title replace Collections.await() to 'also' replace Collections.swap with Kotin's 'also' Aug 7, 2025
@KonstantinKhan KonstantinKhan changed the title replace Collections.swap with Kotin's 'also' replace Collections.swap() with Kotlin's 'also' Aug 7, 2025
@e5LA
Copy link
Owner

e5LA commented Aug 9, 2025

Nice refactoring! Good improvement for the collection. 👍 Thanks a lot @KonstantinKhan

@e5LA e5LA merged commit 7ec5b81 into e5LA:main Aug 9, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: algorithm Classic algorithms and data structure implementations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants