BuaBook / kdb-common

kdb+ Core Libraries and Utilities
Apache License 2.0
51 stars 16 forks source link

type: Allow symbol lists in .type.ensureSymbol #43

Closed kylenarocroc closed 3 years ago

kylenarocroc commented 3 years ago

.type.ensureSymbol works on lists of strings and would be useful to allow it to work on lists of symbols

q).type.ensureSymbol ("abc";"def")
`abc`def
q).type.ensureSymbol `abc`def
'type
  [6]  src/kdb-common/src/type.q:134: .type.ensureSymbol:
    :`$x;
      ^
 }

with this change it becomes

q).type.ensureSymbol ("abc";"def")
`abc`def
q).type.ensureSymbol `abc`def
`abc`def