Skip to main content
Commonmark migration
Source Link

Bean, 48 bytes

00000000: 53d0 80c3 cf53 d080 a078 2080 7b23 8100 SÐ.ÃÏSÐ. x .{#.. 00000010: 0020 8088 40a0 5f4c d3d0 80a3 8101 2080 . ..@ _LÓÐ.£.. . 00000020: b553 5080 a05f 2080 ad8b 2381 020a 3b23 µSP. _ ...#...;# 

Try it online!

Equivalent JavaScript (ES6):

[..._.join("\n")].map((c)=>";".repeat(c.charCodeAt())+"#"); 

Explanation

Taking multiline standard input as an array of string lines in _, it first joins them with \n and spreads the resulting string into an array of characters, which is then mapped like in @Shaggy's answer.

The difference is, it outputs the raw array of ;# strings that represent each character, but because the language specification will ignore all of the following characters: []' , this is valid behavior.

Bean, 48 bytes

00000000: 53d0 80c3 cf53 d080 a078 2080 7b23 8100 SÐ.ÃÏSÐ. x .{#.. 00000010: 0020 8088 40a0 5f4c d3d0 80a3 8101 2080 . ..@ _LÓÐ.£.. . 00000020: b553 5080 a05f 2080 ad8b 2381 020a 3b23 µSP. _ ...#...;# 

Try it online!

Equivalent JavaScript (ES6):

[..._.join("\n")].map((c)=>";".repeat(c.charCodeAt())+"#"); 

Explanation

Taking multiline standard input as an array of string lines in _, it first joins them with \n and spreads the resulting string into an array of characters, which is then mapped like in @Shaggy's answer.

The difference is, it outputs the raw array of ;# strings that represent each character, but because the language specification will ignore all of the following characters: []' , this is valid behavior.

Bean, 48 bytes

00000000: 53d0 80c3 cf53 d080 a078 2080 7b23 8100 SÐ.ÃÏSÐ. x .{#.. 00000010: 0020 8088 40a0 5f4c d3d0 80a3 8101 2080 . ..@ _LÓÐ.£.. . 00000020: b553 5080 a05f 2080 ad8b 2381 020a 3b23 µSP. _ ...#...;# 

Try it online!

Equivalent JavaScript (ES6):

[..._.join("\n")].map((c)=>";".repeat(c.charCodeAt())+"#"); 

Explanation

Taking multiline standard input as an array of string lines in _, it first joins them with \n and spreads the resulting string into an array of characters, which is then mapped like in @Shaggy's answer.

The difference is, it outputs the raw array of ;# strings that represent each character, but because the language specification will ignore all of the following characters: []' , this is valid behavior.

Source Link

Bean, 48 bytes

00000000: 53d0 80c3 cf53 d080 a078 2080 7b23 8100 SÐ.ÃÏSÐ. x .{#.. 00000010: 0020 8088 40a0 5f4c d3d0 80a3 8101 2080 . ..@ _LÓÐ.£.. . 00000020: b553 5080 a05f 2080 ad8b 2381 020a 3b23 µSP. _ ...#...;# 

Try it online!

Equivalent JavaScript (ES6):

[..._.join("\n")].map((c)=>";".repeat(c.charCodeAt())+"#"); 

Explanation

Taking multiline standard input as an array of string lines in _, it first joins them with \n and spreads the resulting string into an array of characters, which is then mapped like in @Shaggy's answer.

The difference is, it outputs the raw array of ;# strings that represent each character, but because the language specification will ignore all of the following characters: []' , this is valid behavior.