Dear Mr. Mechveliani,
 

> I thought efficient arrays are impossible in functional language.

I'm not sharing this thought...       

Here is a quote from the Haskell Library Report:

\begin{quote}
  ``Haskell provides indexable arrays, which may be thought of as functions
    whose domains are isomorphic to contiguous subsets of the integers.
    Functions restricted in this way can be implemented efficiently;
    in particular, a programmer may reasonably expect rapid access to the
    components.''
\end{quote}
                                                                       
> So we have to organise the data so that to avoid the access by index
>  - as possible. 

Sure. If possible - ok.


Regards,

Jan

 ___
'---|--------------------------------------------------------------
    |  __,   _  _      EMail: [EMAIL PROTECTED]
    | /  |  / |/ |     WWWeb: http://www.uni-passau.de/~laitenbe/
    |/\_/|_/  |  |_/
   /| Laitenberger     
--(-|--------------------------------------------------------------
   \|

Reply via email to