Hi all

Unsure whether I'm just a bit rusty coming back to go after a little while. 
I've got a 2d slice of structs that is equivalent to the lines in a file. 

tokens := []doc.Word{}

// type [][]doc.Word
lines := doc.TextLines(tokens)


At this stage, the order of lines is {0, 1, 2 ..., n}.

I have a method that takes a 3d slice, ``[][][]doc.Word``. If I nest the 2d 
slice as follows:

paraLines := [][][]doc.Word{lines}

the ordering of the original second dimension is not preserved. The order, 
within paraLines[0], is something like {1, 2, ..., 6, 5, 8, 9, 4, 0}. 
Should the original order not be preserved? 





-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/d5cbfe9a-afba-4a4f-b084-20353f84dfcb%40googlegroups.com.

Reply via email to