문제

In J, i can do the following:

r=:'0123456'
m=:3 } r
echo m

and it prints 3, as it should.

However, unicode seems to not work:

'▁▂▃▄▅▆▇'
m=: 3 } r
echo m

prints nothing. My guess is that this is due to } indexing by byte - what is the proper way to index by char position?

올바른 솔루션이 없습니다

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top