ISBN13 check digit: Difference between revisions

(Add Miranda)
Line 1,970:
=={{header|langur}}==
In this example, we map to multiple functions (actually 1 no-op).
<syntaxhighlight lang="langur">val .isbn13checkdigit = ffn(var .s) {
.s = replace(.s, RE/[\- ]/)
.s -> re/^[0-9]{13}$/ and
fold(f{+}, map [_, ffn{x *3}], s2n .s) div 10
}
 
890

edits