Data update

This commit is contained in:
Ingy döt Net 2026-02-01 16:33:20 -08:00
parent 5150844a7d
commit 4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions

View file

@ -1,17 +1,17 @@
validCUSIP?: function [cusip][
s: 0
alpha: `A`..`Z`
alpha: 'A'..'Z'
loop.with:'i chop cusip 'c [
v: 0
case ø
when? [numeric? c] -> v: to :integer to :string c
when? [in? c alpha] -> v: (index alpha c) + 1 + 9
when? [c = `*`] -> v: 36
when? [c = `@`] -> v: 37
when? [c = `#`] -> v: 38
else []
when.has: c [
[|numeric?] -> v: to :integer to :string c
[|in? alpha] -> v: (index alpha c) + 1 + 9
[= '*'] -> v: 36
[= '@'] -> v: 37
[= '#'] -> v: 38
]
if odd? i -> v: 2 * v