Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 606 Bytes

File metadata and controls

35 lines (26 loc) · 606 Bytes
layout api-command
language Java
permalink api/java/mul/
command mul
related_commands
add sub div mod
add/
sub/
div/
mod/

Command syntax

{% apibody %} number.mul(number[, number, ...]) → number array.mul(number[, number, ...]) → array {% endapibody %}

Description

Multiply two numbers, or make a periodic array.

Example: It's as easy as 2 * 2 = 4.

r.expr(2).mul(2).run(conn);

Example: Arrays can be multiplied by numbers as well.

r.expr(["This", "is", "the", "song", "that", "never", "ends."]).mul(100).run(conn);