Closed hckiang closed 2 years ago
I think this is not a bug. And your question is unrelated to jsource. Please post to j forum or stackoverflow instead.
Thanks!
This is probably a rank difference, which is hard to spot and tricks newcomers.
<'A' is not equal to <,'A' but they look the same.
Henry Rich
On Thu, Jun 16, 2022, 4:50 PM Hao Chi Kiang @.***> wrote:
Not sure if this is a bug?
load 'convert/pjson'
x=.decpjson encpjson ('TXT';'A';'CNAME';'MX')
x NB. Let's see what's in here...
┌───┬─┬─────┬──┐
│TXT│A│CNAME│MX│
└───┴─┴─────┴──┘
x = <'TXT' NB. OK...
1 0 0 0
x = <'MX' NB. Also good...
0 0 0 1
x = <'A' NB. Why??
0 0 0 0
y=.('TXT';'A';'CNAME';'MX') NB. Let's make the same thing manually
y = <'A' NB. So if I make the list of string manually it works
0 1 0 0
y = x NB. But the 'A' in x is different from the 'A' in y
1 0 1 1
(>1{y) = (>1{x) NB. But everything returns to normal after unboxing x?
1
— Reply to this email directly, view it on GitHub https://github.com/jsoftware/jsource/issues/138, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEKVAJ3ZCKDD7WZ5SWKZTEDVPM5KDANCNFSM5Y7CHO2Q . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Thanks!
Not sure if this is a bug?
Some OS information: OS: Linux J version: 904 beta-a System Locale: