Methods

HashΒΆ

Hash(arr:Arr, key_attr:Str, val_attr:Str)

Create Hash from Arr of something that has key and value attribute
Source: stdlib.ngs:1788

arr

Arr with all the keys and values

key_attr

Name of the attribute holding the keys of newly created Hash

val_attr

Name of the attribute holding the values of newly created Hash

Example

Hash([{"Name": "n1", "Value": "v1"},{"Name": "n2", "Value": "v2"}], "Name", "Value")  # {"n1": "v1", "n2": "v2"}