Skip to content

Commit

Permalink
Fixup into 91e2822
Browse files Browse the repository at this point in the history
Signed-off-by: Olamide Omolola <omololaolamidex@gmail.com>
  • Loading branch information
olamiko committed Nov 5, 2021
1 parent 91e2822 commit 6f903b2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions capabilities.json
Expand Up @@ -123,6 +123,26 @@
"type": "function"
}
},
{
"name": "array.reverse",
"decl": {
"args": [
{
"dynamic": {
"type": "any"
},
"type": "array"
}
],
"result": {
"dynamic": {
"type": "any"
},
"type": "array"
},
"type": "function"
}
},
{
"name": "array.slice",
"decl": {
Expand Down
2 changes: 1 addition & 1 deletion topdown/array.go
Expand Up @@ -82,7 +82,7 @@ func builtinArrayReverse(bctx BuiltinContext, operands []*ast.Term, iter func(*a
index := 0

for index < length {
reversedArr[index] = arr.Elem(length - index - 1) //
reversedArr[index] = arr.Elem(length - index - 1)
index++
}

Expand Down

0 comments on commit 6f903b2

Please sign in to comment.