Jump to content

SEDOLs: Difference between revisions

44 bytes removed ,  4 years ago
m (→‎{{header|Sidef}}: Fix link: Perl 6 --> Raku)
Line 2,007:
=={{header|langur}}==
{{trans|Go}}
{{works with|langur|0.68.1110}}
<lang langur>val .csd = f(.code) {
given len(.code) {
Line 2,022:
val .weight = [1,3,1,7,3,9]
 
val .sumnums = foldfrom(s2n .code
val f(.sum, .i,= .c)for[=0] .sumi +of toNumber(.c,nums 36) x .weight[.i],{
0,_for += .nums[.i] x .weight[.i]
)}
pseries len .code,
split .code,
)
 
toString 9 - (.sum - 1) rem 10
890

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.