[erlang-questions] 2D Map Arrays

Ulf Wiger (TN/EAB) <>
Mon Sep 11 21:01:00 CEST 2006


The array.erl module implements a functional data structure.
It doesn't work like ets.

array:set(I, Value, Array) returns a new Array with
index I set to Value, for example.

This is the same as for gb_trees, dict, queue, and,
well, lists.

BR,
Ulf W

> -----Original Message-----
> From:  
> [mailto:] On Behalf Of Jeff Crane
> Sent: den 11 september 2006 18:52
> To: 
> Subject: Re: [erlang-questions] 2D Map Arrays
> 
> Can anyone post example usage for the Array implementation? 
> 
> I'd like to see proper usage.
> 
> %% yes I imported the array module, after compiling
> test() ->
> 	MyArr = array:new(0,0),
> 	array:push(1,4,MyArr).
> 
> This is about as far as I got.
> 
> How do you identify individual arrays? New doesnt always 
> return me a value. How do I push a value into the array? Does 
> it dynamically resize? I cannot determine the answers to 
> these questions by looking at the code/trying test args.
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection 
> around http://mail.yahoo.com 
> _______________________________________________
> erlang-questions mailing list
> 
> http://www.erlang.org/mailman/listinfo/erlang-questions
> 




More information about the erlang-questions mailing list