Permalink
Browse files

rename .reverse to .flip -- #14

  • Loading branch information...
1 parent b1f0f20 commit 6fa4f7d9fd232f04c8b4251899fd15f670113245 @coke coke committed Jul 18, 2012
Showing with 3 additions and 2 deletions.
  1. +2 −2 Pugs/src/Pugs/Prim.hs
  2. +1 −0 t/spectest.data
View
@@ -210,7 +210,7 @@ op1 "sort" = \v -> do
int <- fromVal rv
return (int <= (0 :: Int))
retSeq sorted
-op1 "Scalar::reverse" = \v -> do
+op1 "Scalar::flip" = \v -> do
str <- fromVal v
return (VStr $ reverse str)
op1 "List::reverse" = \v -> do
@@ -1946,7 +1946,7 @@ initSyms = seq (length syms) $ do
\\n Hash pre hash safe (List)\
\\n List pre pair safe (List)\
\\n Scalar pre item safe (Scalar)\
-\\n Str pre Scalar::reverse safe (Scalar)\
+\\n Str pre Scalar::flip safe (Scalar)\
\\n Any pre List::reverse safe (Array)\
\\n Any pre reverse safe (Scalar, List)\
\\n Any pre reverse safe ()\
View
@@ -369,6 +369,7 @@ S32-str/bool.t
S32-str/capitalize.t
S32-str/chomp.t
S32-str/chop.t
+S32-str/flip.t
# S32-str/indent.t # NYI: Str.indent, infix:<x>
S32-str/index.t
S32-str/lcfirst.t

0 comments on commit 6fa4f7d

Please sign in to comment.