minor fixes in documentation
This commit is contained in:
commit
f33627d05a
@ -1266,6 +1266,11 @@ static Result<Value> builtin_rotate(Interpreter &i, std::vector<Value> args)
|
|||||||
|
|
||||||
if (args.size()) {
|
if (args.size()) {
|
||||||
if (auto const offset_source = get_if<Number>(args.front())) {
|
if (auto const offset_source = get_if<Number>(args.front())) {
|
||||||
|
|
||||||
|
if (args.size() == 1) {
|
||||||
|
return Array{};
|
||||||
|
}
|
||||||
|
|
||||||
auto offset = offset_source->as_int();
|
auto offset = offset_source->as_int();
|
||||||
auto array = Try(flatten(i, std::span(args).subspan(1)));
|
auto array = Try(flatten(i, std::span(args).subspan(1)));
|
||||||
if (offset > 0) {
|
if (offset > 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user