]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/metar/metar.factor
sequences: swap stack arguments for start/start*/subseq?.
[factor.git] / extra / metar / metar.factor
index fc6df7b008634ca9f7691707d06fdcbce96e4e18..a04a254d2b3f24def6dc888259a7a28eda85bc02 100644 (file)
@@ -227,7 +227,7 @@ CONSTANT: compass-directions H{
     ] if ;
 
 : parse-weather ( str -- str' )
-    "VC" over subseq? [ "VC" "" replace t ] [ f ] if
+    dup "VC" subseq? [ "VC" "" replace t ] [ f ] if
     [ (parse-weather) ]
     [ [ " in the vicinity" append ] when ] bi* ;