erik_friis
New Contributor
since ‎2015.06.09
‎2021.06.14

User Statistics

  • 73 Posts
  • 0 Solutions
  • 0 Kudos given
  • 0 Kudos received

User Activity

Reading up on compositions and I see that one is created with the prefix form:'[f;g]Is there no infix form in q?f'g signals an exception.In k4 however both of these work--I would have expected them to be equivalent but they are not. f'g{x+y}'[{x*y}] ...
I don't see this as the proper behavior of an adverb composition, but I suppose I can be persuaded otherwise q)a:(')[sum] /this application creates the expected derived functionq)asum'q)b:('')[sum] / '' should be an adverb projection, since the oper...
q)a:([]c1:`xx`xx`xx`yy`yy;c2:`a`b`a`a`b;c3:10 20 30 40 50)q)ac1 c2 c3--------xx a 10xx b 20xx a 30yy a 40yy b 50q)rct:exec sum c3 by c1,c2 from aq)rctc1 c2| -----| --xx a | 40xx b | 20yy a | 40yy b | 50q)select from rct'type [0] select from rct ^q)ex...
In playing around with the select [] syntax with a table such as:t:([]a:10 20 30;b:40 50 60)I notice that the following syntaxes are supported as opposed to generating the expected exception though I don't know if a third parameter is planned or supp...
In APL the / operator performs the work of the q function over as well as Boolean compression.E.g. 1 0 1 0 1 / "hello"hloIs there similar functionality in q to compress a list with 10101b?I know the same functionality can probably be achieved with wh...