CUSIP: Difference between revisions

180 bytes removed ,  2 months ago
(→‎{{header|Modula-2}}: Added MiniScript)
Line 2,988:
=={{header|langur}}==
If we don't strictly follow the pseudo-code, we can do this.
 
{{works with|langur|0.8.5}}
<syntaxhighlight lang=langur>val .isCusip = f(.s) {
if not isString(.s) or len(.s) != 9 {
Line 3,015 ⟶ 3,013:
 
Following the pseudo-code would look more like the following.
 
{{works with|langur|0.8.5}}
{{trans|Go}}
<syntaxhighlight lang=langur>val .isCusip = f(.s) {
Line 3,027 ⟶ 3,023:
var .v = 0
 
givenswitch[and] .c {
# for given, default op between conditions is "and"
# for switch, default op between conditions is "or"
case >= '0', <= '9':
.v = .c-'0'
885

edits