Page MenuHomeFeedback Tracker

[Feature Request] New parameter for hashmap set to only set data if it doesn't exist
Closed, ResolvedPublic

Description

A new optional parameter:

hashMap set [key, value, onlyIfUnique = false]

Details

Severity
Feature
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
Scripting

Event Timeline

Tenshi changed the task status from New to Reviewed.Dec 15 2021, 1:52 PM
Tenshi set Ref Ticket to Internal Ref.: AIII-54839.
Tenshi added a subscriber: Tenshi.

Thank you for requesting the feature.
Due to the current phase of Live Ops development in Arma 3, we cannot commit to any new features, though we will try to consider them.

dedmen added a subscriber: dedmen.Jan 6 2022, 12:17 PM

Test script

_hm = createHashMap;
_hm set ["a", 1];
_hm set ["a", 2];
_hm get "a"

expected result is 1

dev branch next week

dedmen changed the task status from Reviewed to Feedback.Jan 6 2022, 12:21 PM
dedmen closed this task as Resolved.Sep 26 2023, 2:21 PM
dedmen claimed this task.