5 added 29 characters in body
source | link

Haskell, 58 55 bytes

[[vunlines["1234567890">>=(:(' '<$[1..abs n])|v<-"1234567890"]>>=id|n<)|n<-[-8..8]]

Try it online!Try it online!

This is basically @nimi 's solution :)

Haskell, 58 55 bytes

[[v:(' '<$[1..abs n])|v<-"1234567890"]>>=id|n<-[-8..8]]

Try it online!

Haskell, 58 55 bytes

unlines["1234567890">>=(:(' '<$[1..abs n]))|n<-[-8..8]]

Try it online!

This is basically @nimi 's solution :)

4 deleted 577 characters in body
source | link

Haskell, 66 bytes

[n!1|n<-abs<$>[-8..8]]
n!10="0"
n!k=show k++(' '<$[1..n])++n!(k+1)

Try it online!

Note that this version outputs the exact string, that is with no extra spaces at the end of each line!

Here is a version that includes the extra padding:

Haskell, 58 55 bytes

[[v:(' '<$[1..abs n])|v<-"1234567890"]>>=id|n<-[-8..8]]

Try it online!

Haskell, 66 bytes

[n!1|n<-abs<$>[-8..8]]
n!10="0"
n!k=show k++(' '<$[1..n])++n!(k+1)

Try it online!

Note that this version outputs the exact string, that is with no extra spaces at the end of each line!

Here is a version that includes the extra padding:

Haskell, 58 55 bytes

[[v:(' '<$[1..abs n])|v<-"1234567890"]>>=id|n<-[-8..8]]

Try it online!

Haskell, 58 55 bytes

[[v:(' '<$[1..abs n])|v<-"1234567890"]>>=id|n<-[-8..8]]

Try it online!

3 added 455 characters in body
source | link

Haskell, 6866 bytes

x=[n[n!1|n<-abs<$>[-8..8]]
n!10="0"
n!k=show k++(' '<$[1..n])++n!(k+1)

Try it online!

Note that this version outputs the exact string, that is with no extra spaces at the end of each line!

Here is a version that includes the extra padding:

Haskell, 58 55 bytes

[[v:(' '<$[1..abs n])|v<-"1234567890"]>>=id|n<-[-8..8]]

Try it online!

Haskell, 68 bytes

x=[n!1|n<-abs<$>[-8..8]]
n!10="0"
n!k=show k++(' '<$[1..n])++n!(k+1)

Try it online!

Note that this version outputs the exact string, that is with no extra spaces at the end of each line!

Haskell, 66 bytes

[n!1|n<-abs<$>[-8..8]]
n!10="0"
n!k=show k++(' '<$[1..n])++n!(k+1)

Try it online!

Note that this version outputs the exact string, that is with no extra spaces at the end of each line!

Here is a version that includes the extra padding:

Haskell, 58 55 bytes

[[v:(' '<$[1..abs n])|v<-"1234567890"]>>=id|n<-[-8..8]]

Try it online!

2 added 93 characters in body
source | link
1
source | link