ISBN13 check digit: Difference between revisions
→{{header|langur}}
Thundergnat (talk | contribs) (Rename Perl 6 -> Raku, alphabetize, minor clean-up) |
Langurmonkey (talk | contribs) |
||
Line 188:
=={{header|langur}}==
{{works with|langur|0.
In this example, we map to multiple functions (actually 1 no-op).
<lang langur>val .isbn13checkdigit = f(var .s) {
.s = replace(.s, RE/[\- ]/)
matching(re/^[0-9]{13}$/, .s) and
fold(f{+}, map
}
|