zhuoql
1
see:
q)0N!parse(“(til 10) ,’ (til 10)”); // each
((';,);(k){$[0>@x;!x;'type]};10);(k){$[0\>@x;!x;'
type]};10))
q)0N!parse(“(til 10) ,/: (til 10)”); // right each
((/:;,);(k){$[0>@x;!x;'type]};10);(k){$[0\>@x;!x;'
type]};10))
q)0N!parse(“(til 10) ,: (til 10)”); // left each
'“(til 10) ,: (til 10)”
I get a signal raised while parsing the left each expression above, but that expression runs well at the q REPL, why?
Thanks.
– ZHUO QL (KDr2) http://kdr2.com
Hi,
You need to escape the backslash in the string:
q)0N!parse(“(til 10) ,\: (til 10)”); // left each
((:;,);(k){$[0>@x;!x;'type]};10);(k){$[0>@x;!x;'
type]};10))
Regards,
Paul
zhuoql
3
Content-Disposition: inline
get it, thank you.
KDr2, http://kdr2.com
On 23 Oct 2016, 15:31 +0800, Paul Loughran <pauljloughran@gmail.com>, wrote:
Hi,
You need to escape the backslash in the string:
q)0N!parse(“(til 10) ,\: (til 10)”); // left each
((:;,);(k){$[0>@x;!x;'type]};10);(k){$[0>@x;!x;'
type]};10))
Regards,
Paul