Arithmetic/Integer: Difference between revisions

Content added Content deleted
m (J: try to be not so awkward)
Line 852: Line 852:


=={{header|J}}==
=={{header|J}}==
<lang j>calc =: + , - , * , <.@% , |~ , ^</lang>
<lang j>calc =: + , - , * , <.@% , |~ , ^</lang>
The function <code>calc</code> constructs a list of numeric results for this task.
The function <code>calc</code> constructs a list of numeric results for this task.
<lang j> 17 calc 3
<lang j> 17 calc 3