Commits

Anonymous committed 6e81353

Added support for reversed().

  • Participants
  • Parent commits c40e6b6

Comments (0)

Files changed (1)

pyvascript/stdlib.pyva

+def reversed(x):
+    result = []
+    l = len(x)
+    for i in range(l):
+        result.append(x[l-i-1])
+    return result
+
 def list(x):
     result = []
     for item in x: