Can somebody say how the ucp and ": are related. In J I may use format (":)
also with strings and I am used to get back the same string.
'abc' -: ":'abc'
1
This old, maybe bad, habit causes now problem with Unicode. Let see this with a
string including four letters and the second letter is a special character
"KÄKI"
#'KÄKI'
5
#ucp 'KÄKI'
4
#": ucp 'KÄKI'
5
So now
(": ucp 'KÄKI') -: ucp 'KÄKI'
0
So is there any nice work around or should I In future test first numeric
values in array and then apply ": only for numeric values?
Anssi
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm