Skip to content

Hashes - Add parameter to prevent removing default values#1383

Open
jokoho48 wants to merge 2 commits intomasterfrom
hashFixDefaultRemoval
Open

Hashes - Add parameter to prevent removing default values#1383
jokoho48 wants to merge 2 commits intomasterfrom
hashFixDefaultRemoval

Conversation

@jokoho48
Copy link
Copy Markdown
Member

When merged this pull request will:

@jokoho48 jokoho48 changed the title possible fix for #1358 Add Parameter for Removing Defaults from hashes Oct 14, 2020
@jokoho48 jokoho48 changed the title Add Parameter for Removing Defaults from hashes Add Parameter to prevent removing defaults from hashes Oct 14, 2020
@PabstMirror PabstMirror added this to the 3.15.2 milestone Nov 1, 2020
@PabstMirror
Copy link
Copy Markdown
Contributor

_hash = [[], nil, false] call CBA_fnc_hashCreate; 
[_hash, "A", nil] call CBA_fnc_hashSet;
[_hash] call CBA_fnc_hashKeys;

returns []

_hash = [[], 5, false] call CBA_fnc_hashCreate; 
[_hash, "B", 5] call CBA_fnc_hashSet;
[_hash, "B"] call CBA_fnc_hashRem;
[_hash] call CBA_fnc_hashKeys;

returns ["B"]

@PabstMirror PabstMirror modified the milestones: 3.15.2, 3.16 Nov 2, 2020
@PabstMirror PabstMirror modified the milestones: 3.16, Ongoing Jan 20, 2021
@jonpas jonpas added the WIP label Jul 23, 2021
@jonpas jonpas changed the title Add Parameter to prevent removing defaults from hashes Hasehs - Add parameter to prevent removing default values Jul 23, 2021
@jonpas jonpas changed the title Hasehs - Add parameter to prevent removing default values Hashes - Add parameter to prevent removing default values Jul 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants