Talk:SEDOLs

From Rosetta Code
Revision as of 12:44, 5 August 2008 by 68.175.31.239 (talk) (sig)

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)