On Saturday, 7 October 2017 at 07:38:47 UTC, Chirs Forest wrote:
I have some data that I want to store in a dynamic 2d array... I'd like to be able to add elements to the front of the array and access those elements with negative integers as well as add numbers to the back that I'd acess normally with positive integers. Is this something I can do, or do I have to build a container to handle what I want?

Mir Algorithm [1] has 2D arrays. Elements can be added to the front/back of each dimension using `concatenation` routine [2]. In the same time it does not support negative indexes.

[1] https://github.com/libmir/mir-algorithm

[2] http://docs.algorithm.dlang.io/latest/mir_ndslice_concatenation.html#.concatenation

Best regards,
Ilya Yaroshenko

Reply via email to