Skip to main content
deleted 45 characters in body
Source Link
BlackCap
  • 3.9k
  • 16
  • 33

Haskell, 4341 bytes

f n=['-'|n>0]++(tail$[1..abs n]>>"-~")++"0"

f n|n<0=tail.f$abs n|x<n|n<0=tail$f(-n)|x<-[1..n]>>"-~"=x++"0"

Thanks to nimi for taking a byte, and then giving it right back again3 bytes

Haskell, 43 bytes

f n=['-'|n>0]++(tail$[1..abs n]>>"-~")++"0"

f n|n<0=tail.f$abs n|x<-[1..n]>>"-~"=x++"0"

Thanks to nimi for taking a byte, and then giving it right back again

Haskell, 41 bytes

f n=['-'|n>0]++(tail$[1..abs n]>>"-~")++"0"

f n|n<0=tail$f(-n)|x<-[1..n]>>"-~"=x++"0"

Thanks to nimi for 3 bytes

deleted 11 characters in body
Source Link
BlackCap
  • 3.9k
  • 16
  • 33

Haskell, 43 4443 bytes

f n=['-'|n>0]++(tail$[1..abs n]>>"-~")++"0"

f n|n<0=tail.f$abs n|1<2=(n|x<-[1..n]>>"-~")++"0"~"=x++"0"

Thanks to nimi for taking a byte, and then giving it right back again

Haskell, 43 44 bytes

f n=['-'|n>0]++(tail$[1..abs n]>>"-~")++"0"

f n|n<0=tail.f$abs n|1<2=([1..n]>>"-~")++"0"

Haskell, 43 bytes

f n=['-'|n>0]++(tail$[1..abs n]>>"-~")++"0"

f n|n<0=tail.f$abs n|x<-[1..n]>>"-~"=x++"0"

Thanks to nimi for taking a byte, and then giving it right back again

added 65 characters in body
Source Link
BlackCap
  • 3.9k
  • 16
  • 33

Haskell, 4343 44 bytes

f n=['-'|n>0]++(tail$[1..abs n]>>"-~")++"0"

f n=['-'|n>0]++n|n<0=tail.f$abs n|1<2=(tail$[1[1..abs n]>>"-~")++"0"

Haskell, 43 bytes

f n=['-'|n>0]++(tail$[1..abs n]>>"-~")++"0"

Haskell, 43 44 bytes

f n=['-'|n>0]++(tail$[1..abs n]>>"-~")++"0"

f n|n<0=tail.f$abs n|1<2=([1..n]>>"-~")++"0"
Source Link
BlackCap
  • 3.9k
  • 16
  • 33
Loading