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 Record::truncate for trimming based on len #11004

Merged
merged 1 commit into from Nov 8, 2023

Conversation

sholderbach
Copy link
Member

Description

Compatible with Vec::truncate and indexmap::IndexMap::truncate

Found useful in #10903 for drop column

Tests + Formatting

Doctest with the relevant edge-cases

Compatible with `Vec::truncate` and `indexmap::IndexMap::truncate`

Found useful in nushell#10903 for `drop column`
@sholderbach sholderbach merged commit cd75640 into nushell:main Nov 8, 2023
19 checks passed
@sholderbach sholderbach deleted the record-truncate branch November 8, 2023 23:00
hardfau1t pushed a commit to hardfau1t/nushell that referenced this pull request Dec 14, 2023
# Description
Compatible with `Vec::truncate` and `indexmap::IndexMap::truncate`

Found useful in nushell#10903 for `drop column`

# Tests + Formatting
Doctest with the relevant edge-cases
dmatos2012 pushed a commit to dmatos2012/nushell that referenced this pull request Feb 20, 2024
# Description
Compatible with `Vec::truncate` and `indexmap::IndexMap::truncate`

Found useful in nushell#10903 for `drop column`

# Tests + Formatting
Doctest with the relevant edge-cases
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

1 participant