Why does enlist work when there are already multiple elements in the list?
q)a0:("A";"BB")q)a1:(enlist"A";"BB")q)b:("AA";"BB")q)"+"sv a0'type [0] "+"sv a0 ^q))"+"sv a1"A+BB"q))"+"sv b"AA+BB"
Why does enlist work when there are already multiple elements in the list?
q)a0:("A";"BB")q)a1:(enlist"A";"BB")q)b:("AA";"BB")q)"+"sv a0'type [0] "+"sv a0 ^q))"+"sv a1"A+BB"q))"+"sv b"AA+BB"
“A” is a char, whereas all the following are char lists:
“AA”
“BB”
enlist"A"
sv only works on uniform lists. (“A”;“BB”) is a mixed list, whereas (“AA”;“BB”) and (enlist"A";“BB”) are both uniform lists of char lists.