Pike v8.1 release 6

Method ADT.OrderedMapping()->create()


Method create

ADT.OrderedMapping ADT.OrderedMapping(mixed ... args)

Example
ADT.OrderedMapping m1 = ADT.OrderedMapping("key1", "val1",
                                           "key2", "val2");
Throws

An error is thrown if the number of arguments isn't even.

Parameter args

Odd arguments are the indices, even arguments the values. "index", "value", "index", "value", ... 


Method create

ADT.OrderedMapping ADT.OrderedMapping(array keys, array values)

Example
ADT.OrderedMapping m1 = ADT.OrderedMapping(({ "key1", "key2" }),
                                           ({ "val1", "val2" }));
Throws

And error is thrown if the size of the keys and values doens't match.

Parameter keys
Parameter values