N Slab Slanted Slash Cake Write a program or function that takes in a positive integer N.

When N is 1, output

/\
\/


When N is 2, output

/\/\
\/ /
/ /
\/


When N is 3, output

/\/\/\
\/ / /
/ / /
\/ /
/ /
\/


When N is 4, output

/\/\/\/\
\/ / / /
/ / / /
\/ / /
/ / /
\/ /
/ /
\/


For larger N the pattern continues, a new layer is added every time N is incremented.


"Output" means print the slash pattern or return it as a string.
A single trailing newline in the output is allowed.
Trailing spaces in the output are allowed but leading spaces are not.


The shortest code in bytes wins.
CJam, 32 30 29 28 bytes

ri_"/\ /"2/f*)@,\f&gt;+_z..e&gt;N*


Test it here.

I was trying to help Reto golf his CJam answer but ended up with a solution that had nothing to do with his, so I figured I might as well post it myself.

Explanation

This makes use of the symmetry of the output. In particular, the fact that the output is the same as its transpose.

First, we generate the first N+1 lines, but without the left edge:

ri       e# Read input and convert to integer N.
_        e# Duplicate.
"/\ /"2/ e# Push an array with two strings: ["/\" " /"]
f*       e# Repeat each of the two strings N times. That gives the first two rows.
)        e# Detach the second row.
@,       e# Pull up the other copy of N and turn into range [0 1 ... N-1].
\f&gt;      e# For each element i in that range, discard the first i characters of
         e# the second row.
+        e# Add all those lines back to the first row.


Now we've got an array of strings representing the following grid:

/\/\/\/\
 / / / /
/ / / /
 / / /
/ / /


The transpose of that looks like this:

/ / /
\/ / 
/ / /
\/ / 
/ / /
\/ /
/ /
\/


Together, these have all the non-space characters that we need. We can now make use of Dennis's rad tip to combine two ASCII grids into one, by taking the maximum of each corresponding pair of characters. In all positions where the two grids differ, one will have a space (or nothing at all) and the other will have the character we're looking for. When one list in a vectorised operation is longer than the other, the additional elements of the longer list will simply be kept, which is just what we're looking for. In the other cases, the non-space character will always be the maximum of the two characters:

_z   e# Duplicate the grid and transpose it.
..e&gt; e# For each pair of characters in corresponding positions, pick the maximum.
N*   e# Join the lines by linefeed characters.