Skip to main content
Corrected output
Source Link

k, 2829 bytes

o:{0N!-1@(y#*x),x:y_x;y_x}[.Q.A]'!26

This prints to the console + returns an array, without quotes. Setting the return to a variable ("o") suppresses the output of nullsthe function in the k interpreter, so nothing will be returned by the execution of the function.

Get kdb+ here

k, 28 bytes

{0N!(y#*x),x:y_x;}[.Q.A]'!26

This prints to the console + returns an array of nulls.

k, 29 bytes

o:{-1@(y#*x),x:y_x}[.Q.A]'!26

This prints to the console, without quotes. Setting the return to a variable ("o") suppresses the output of the function in the k interpreter, so nothing will be returned by the execution of the function.

Get kdb+ here

Source Link

k, 28 bytes

{0N!(y#*x),x:y_x;}[.Q.A]'!26

This prints to the console + returns an array of nulls.