Hello Mahmoud et ALL
See attached. It will detect and print 1D or 2D List format.
TestArray1D2D-1.ring
Seems to print different ways depending if
aList is Numbers, Letters, Words and !D or 2D
Calls Func DebugArray(arrayList)
Can anybody explain the behaviour ?
==========================
Input Lists
aNum1D = [9,8,7,6,5,4,3,2,1]
aChar1D = ["a","b","c","d","e","f","g","h","i"]
aNum2D = [[1,2,3],
[4,5,6],
[7,8,9]]
aWord1D = ["able","baker","charlie","dog","easy","fox","george","harry","igloo"]
aWord2D = [[ "george","harry","igloo" ],
[ "dog","easy","fox" ],
[ "able","baker","charlie" ]]
================================
OUTPUT
aNum-1D: ===== Horizontal Numbers <<< GOOD
1D Items: 9x0
9 8 7 6 5 4 3 2 1
aChar-1D: ===== Vertical Letters <<< Strange
2D Items: 9x1
a
b
c
d
e
f
g
h
i
aNum-2D : ===== Matrix of Numbers <<< GOOD
2D Items: 3x3
1 2 3
4 5 6
7 8 9
aWord-1D: ===== Vertical Words with Spaces between Letters <<< STRANGE
2D Items: 9x4
a b l e
b a k e r
c h a r l i e
d o g
e a s y
f o x
g e o r g e
h a r r y
i g l o o
aWord-2D: ===== Matrix of Words <<< GOOD
2D Items: 3x3
george harry igloo
dog easy fox
able baker charlie
=======================