Hi,I have a list of dictionaries which I am trying to scan () over. qautomatically converts my list of dictionaries into a table, which isnice for certain tasks. However, when I want to scan over it, itreturns a `nyi error, while the function works fine if fed twodictionaries directly. Is there a way to scan a list of dictionarieswithout rolling one’s own, using do or while?Thanks,Victor
Could you give an example?q) (,) (0 1!ab;2 3!cd)0 1!ab0 1 2 3!abcdOn Jul 27, 1:03?pm, Victor Wong <victor.w…> wrote:> Hi,>> I have a list of dictionaries which I am trying to scan () over. ?q> automatically converts my list of dictionaries into a table, which is> nice for certain tasks. ?However, when I want to scan over it, it> returns a `nyi error, while the function works fine if fed two> dictionaries directly. ?Is there a way to scan a list of dictionaries> without rolling one’s own, using do or while?>> Thanks,> Victor</victor.w…>
i think Victor’s case are using non integer as dict:
q)(,) ?(ab!0 1;ab!3 4;ab!4 5)
`nyi
q)(,) ?flip (ab!0 1;ab!3 4;ab!4 5)
a| 0 3 4
b| 0 3 4 1 4 5
Xi
Yes, I am using a symbol key for the dictionary. I did not know thatwas a difference between integer and non-integer keys for scan.VictorOn Jul 27, 2:36?pm, Xi Chen <heydic…> wrote:> i think Victor’s case are using non integer as dict:>> q)(,) ?(ab!0 1;ab!3 4;ab!4 5)> nyi>> q)(,\) ?flip (ab!0 1;ab!3 4;ab!4 5)> a| 0 3 4> b| 0 3 4 1 4 5>> Xi>> On 27 July 2010 22:28, michael.plumlee <michael.plum...> wrote:>>>> > Could you give an example?>> > q) (,\) ?(0 1!ab;2 3!cd)> > 0 1!ab> > 0 1 2 3!abcd>> > On Jul 27, 1:03 pm, Victor Wong <victor.w...> wrote:> > > Hi,>> > > I have a list of dictionaries which I am trying to scan (\) over. ?q> > > automatically converts my list of dictionaries into a table, which is> > > nice for certain tasks. ?However, when I want to scan over it, it> > > returns a nyi error, while the function works fine if fed two> > > dictionaries directly. ?Is there a way to scan a list of dictionaries> > > without rolling one’s own, using do or while?>> > > Thanks,> > > Victor>> > –> >
Submitted via Google Groups</victor.w…></michael.plum…></heydic…>