RosettaCodeData/Task/Multiplication-tables/BQN/multiplication-tables.bqn
2023-07-01 13:44:08 -04:00

12 lines
567 B
BQN
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Table {
m •Repr¨ ט1+𝕩 # The numbers, formatted individually
main # Bottom part: three sections
>(-10𝕩)¨m # Original numbers
𝕩'|' # Divider
˘(-1+10𝕩×𝕩)¨(˜𝕩)/¨m # Multiplied numbers, padded and joined
head ' '¨ ¨ main # Header: first row but with space left of |
>head, "-+-"¨¨head, main # Header, divider, and main
}
•Out˘ Table 12