Talk:SEDOLs: Difference between revisions

From Rosetta Code
Content added Content deleted
(response to J enquiry)
(sig)
Line 11: Line 11:
:Not terribly exciting.
:Not terribly exciting.


[[User:68.175.31.239|68.175.31.239]] 12:44, 5 August 2008 (UTC) (aka [[User:DanBron|DanBron]])
:[[User:68.175.31.239|68.175.31.239]] 12:44, 5 August 2008 (UTC) (aka [[User:DanBron|DanBron]])

Revision as of 12:44, 5 August 2008

J

Does the J solution reject strings with vowels in them? It says on the wikipedia that vowels are never used in the 6-character code, so the function should reject strings that have them. --Mwn3d 04:58, 5 August 2008 (UTC)

The J code isn't a validator, it merely calculates and appends the check digit.
You could modify it to whine about vowels by removing them:
    sn   =.  '0123456789 BCD FGH JKLMN PQRST VWXYZ'  
Not terribly exciting.
68.175.31.239 12:44, 5 August 2008 (UTC) (aka DanBron)