Closed taliszhou closed 5 years ago
zygo> (def test [[1 2 3 4] [5 6 7 8]]) [[1 2 3 4] [5 6 7 8]] zygo> test[1] [5 6 7 8] zygo> test[1][1] 6
it works! i want like it.
I recommend that you return a standard SexpArray instead of your own custom type. Then the indexing machinery will already know how to index into it.
HI~ glycerine!
I'm trying to write a function that returns rows of data from a mysql query. But I don't know how to return a multi-array to the repl. I tried typing "[def multarr [[1, 2, 3] [4, 5, 6]]" directly into the repl and found it supported.
please help to have a look.
`
`
I refer to the time.go code, define a SexpMysqlDataList class, but I need to format the output myself (SexpString()), and I need to get the returned dataset in other code like accessing an array.
Sorry to bother you with so many beginner questions.
Thanks!!!