

Ken__
Forum Replies Created
-
Ken__
MemberJune 3, 2025 at 7:31 pm in reply to: kdb+/q Developer Lv2 – list indexing : exercise GList just before 4.2 for type1. thanks prompt reply, but it’s a bit confusing indeed, so after your explanation it’s for the WHOLE LIST of same type value h, the type each in type each GList: (`a; 1 ; “b”) shows a list of value of each element data type and then an “h” char at the last to show these values of data type are of short type only. <span style=”background-color: transparent; font-family: inherit; font-size: inherit;”>I thought as if it would show the same as the individual type command i.e.type `a
type 1
type “b”
will get same expected results from type each (`a;1;”b”) but it does not.
quite the opposite to what I thought would give the same result to individual type query to 3 value. I still cannot convey myself and dry run in brain when and why “type each” would show like this.
I can only think of a reasonable answer – type each would generate a list of same value, in this case it must be “h” for short
2. yes your understanding to the question is correct,
the juypter notebook gives results of
type each GList first,
and then
show GList value
however the command on notebook is
show GList and 2nd line the
type each GList
why is that?