Re: Why am I getting segmentation fault on this code
- Posted by _tom (admin) Jul 14, 2017
- 1445 views
rneu said...
Surprisingly, I am getting following error with aseq[3, $] :
<0132>:: Syntax error - expected to see possibly ']', not ',' aseq = aseq[3, $]
aseq[3..$] works.
that was a typo:
sequence s = { 1, 2, 3, 4, 5 } ? s[3..$] --> {3,4,5}
_tom