ISBN13 check digit: Difference between revisions
→{{header|langur}}
Langurmonkey (talk | contribs) (for clarity, replaced ISBN for opCode with ISBN for Python Interviews (which I have no vested interest in)) |
Langurmonkey (talk | contribs) |
||
Line 1,945:
<syntaxhighlight lang="langur">val .isbn13checkdigit = f(var .s) {
.s = replace(.s, RE/[\- ]/)
fold(f{+}, map [_, f{x 3}], s2n .s) div 10
}
|