Skip to main content
deleted 25 characters in body
Source Link
xnor
  • 146.6k
  • 26
  • 279
  • 652

Haskell, 2625 bytes

f n="\\n=cycle"\\/"!!mod n 2<$[1n<$[1..n]

Too bad it's longer-1 byte thanks to do:Damien with cycle.

s="\\/"++s;f n=s!!n<$[1..n]

Haskell, 26 bytes

f n="\\/"!!mod n 2<$[1..n]

Too bad it's longer to do:

s="\\/"++s;f n=s!!n<$[1..n]

Haskell, 25 bytes

f n=cycle"\\/"!!n<$[1..n]

-1 byte thanks to Damien with cycle.

Source Link
xnor
  • 146.6k
  • 26
  • 279
  • 652

Haskell, 26 bytes

f n="\\/"!!mod n 2<$[1..n]

Too bad it's longer to do:

s="\\/"++s;f n=s!!n<$[1..n]