Sha256: f39cafae877da99fd4cdf2dae6b054b8521f816b09610e340bdcf5dcfba877ed
Contents?: true
Size: 674 Bytes
Versions: 10
Compression:
Stored size: 674 Bytes
Contents
calc =: + , - , * , <.@% , |~ , ^ The function <code>calc</code> constructs a list of numeric results for this task. The implementation of integer division we use here (<code><.@%.</code>) rounds down (towards negative infinity), and this is compatible with the remainder implementation we use here. 17 calc 3 20 14 51 5 2 4913 The function <code>bia</code> assembles these results, textually: labels =: ];.2 'Sum: Difference: Product: Quotient: Remainder: Exponentiation: ' combine =: ,. ":@,. bia =: labels combine calc 17 bia 3 Sum: 20 Difference: 14 Product: 51 Quotient: 5 Remainder: 2 Exponentiation: 4913
Version data entries
10 entries across 7 versions & 1 rubygems