[Question]
  [
# Problem
Given a positive integer `n` where `n < 100`
Output a diamond pattern as follows:
Input `n=1`
```
/\/\
\/\/
```
Input `n=2`:
```
 /\      /\
//\\/\/\//\\
\\//\/\/\\//
 \/      \/
```
Input `n=3`:
```
  /\                /\
 //\\  /\      /\  //\\
///\\\//\\/\/\//\\///\\\
\\\///\\//\/\/\\//\\\///
 \\//  \/      \/  \\//
  \/                \/
```
Input `n=4`:
```
   /\                              /\
  //\\    /\                /\    //\\
 ///\\\  //\\  /\      /\  //\\  ///\\\
////\\\\///\\\//\\/\/\//\\///\\\////\\\\
\\\\////\\\///\\//\/\/\\//\\\///\\\\////
 \\\///  \\//  \/      \/  \\//  \\\///
  \\//    \/                \/    \\//
   \/                              \/
```
And so on.
# Rules
* Program and function allowed.
* Trailing whitespace allowed.
* Leading whitespace on lines with no `/` or `\` allowed.
* Trailing and leading newlines allowed.
* **Shortest code in bytes win**
[This is probably pretty related](https://codegolf.stackexchange.com/questions/98588/draw-some-mountain-peaks)
  
[Answer]
# [SOGL V0.12](https://github.com/dzaima/SOGL), 24 [bytes](https://github.com/dzaima/SOGL/blob/master/chartable.md)
```
ā.∫ā;∫ \*+}ø┼↔±╬¡;øΚ┼}╬³
```
[Try it Here!](https://dzaima.github.io/SOGLOnline/?code=JXUwMTAxLiV1MjIyQiV1MDEwMSUzQiV1MjIyQiUyMCU1QyorJTdEJUY4JXUyNTNDJXUyMTk0JUIxJXUyNTZDJUExJTNCJUY4JXUwMzlBJXUyNTNDJTdEJXUyNTZDJUIz,inputs=NQ__)
Explanation:
```
ā                         push an empty array (the main canvas)
 .∫                  }    iterate over the input, pushing 1-indexed iteration
   ā;                       push an empty array below the iteration
     ∫    }                 iterate over the iteration counter
       \*                     push current iteration amount of slashes
         +                    append those to the 2nd array
           ø┼               append nothing (so it'd space the array to a square)
             ↔±             reverse horizontally (swapping slashes)
               ╬¡           quad-palindromize with 0 overlap and swapping characters as required
                 ;          get the canvas ontop
                  øΚ        prepend to it an empty line (so the now bigger romb would be one up)
                    ┼       append horizontally the canvas to the current romb
                      ╬³  palindromize horizontally with no overlap and swapping characters
```
[Answer]
# [Charcoal](https://github.com/somebody1234/Charcoal), ~~30~~ 27 bytes
```
Ｆ⁺¹Ｎ«Ｆι«Ｆ⁴«↙⁻ικ↑⟲Ｔ»←»Ｍι←»‖Ｍ
```
[Try it online!](https://tio.run/##XY/BDsIgEETvfAVHSPBg0lN79WIipmn0A5BAJFJotlAPpt@OtFrTOrd9M7uTlXcB0gubkvaASW1jT/YMH10Xwzm2NwWEUopfCGfNEbNMP1KsyaQajAukPPinOykdGObG5buG4Qel1SbK/aBIee3@cOODCOoCwvW5oiUre0Tb3anha3@sGeeuxRlRo7RVMnAD4PM/VUpF2g32DQ "Charcoal – Try It Online") Link is to verbose version of code. Explanation: Charcoal's drawing primitives can't quite draw a diamond, because the diagonal movements stay on squares of the same parity. Edit: The new solution is to draw one side of a diamond and then rotate the entire canvas ready to draw the next side, allowing a diamond to be drawn in a loop. This loop is then contained in a loop to draw all the inner diamonds for each diamond. The outermost loop draws all diamonds adjacent to each other. Finally the image is mirrored.
Note that Charcoal has since been extended and another byte could be saved by using `Increment`.
[Answer]
# [APL (Dyalog)](https://www.dyalog.com/), ~~70~~ ~~69~~ 66 bytes
```
B←{'/\ '['\/'⍳⍺⍺⍵]}
C←⊢,⌽B
C(⊢⍪⊖B)⊃,/{C⊖A↑⊖' /'[⍵≤∘.+⍨⍳⍵+1]}¨⌽⍳A←⎕
```
[Try it online!](https://tio.run/##SyzI0U2pTMzJT///qG@qp/@jtgkGXI862tP/OwGZ1er6MQrq0eox@uqPejc/6t0FRltja7mcgbKPuhbpPOrZ68TlrAFkPupd9ahrmpPmo65mHf1qZyDb8VHbRCClrqCvHg3U9ahzyaOOGXraj3pXgA3bqm0YW3toBdAEINcRZF7f1P9Aq/@ncxlypXMZAbExEJsAAA "APL (Dyalog Unicode) – Try It Online")
Assumes `⎕IO←0`, which is standard on many systems, so the program is 0-indexed.
This is a tradfn that takes input via STDIN.
### Explanation
(slightly outdated)
Note that `⍺` is the left argument, `⍵` is the right argument and `⍺⍺` is the left operator.
`B` is a function that helps in mirroring the diamonds. It takes the string as the right argument and the reverse function as the left (so `B` is an operator).
```
B←{'/\ '['\/'⍳⍺⍺⍵]}
              ⍺⍺⍵            Apply ⍺⍺ on ⍵
         '\/'⍳               Find the index of the reflected string in '\/' (if the character is not found in `'\/'`, then return an index out of the bounds of the string, ie `2` if the character is a space)
   '/\ '[        ]           Use these indexes on '/\ ' to reflect the '/\' characters
```
And now we go to the main part of the program.
```
A←⎕              Assign the input to variable A
⍳                Create a range 0 .. A-1
⌽                Reverse it so that it becomes A-1 .. 0
¨                For each element do (the right argument is the element):
 ⍳⍵+1             Create a range 0 .. ⍵
 ∘.+⍨             Create an addition table using the range to result in a matrix like so:
                   0+0 0+1 0+2 .. 0+⍵
                   1+0 1+1 1+2 .. 1+⍵
                   2+0 2+1 2+2 .. 2+⍵
                   ...
                   ⍵+0 ⍵+1 ⍵+2 .. ⍵+⍵
 ⍵≤              The elements of the matrix that are greater than or equal to the ⍵,
                 this creates a triangle matrix that looks like this:
                   0 0 .. 0 1
                   0 0 .. 1 1
                   ..
                   1 1 .. 1 1
 ' /'[...]       Index it in ' /' to get a character matrix
                 (ie replace 0s with spaces and 1s with '/'s)
 ⊖               Flip this vertically
 A↑              Pad the top spaces
```
This is necessary to ensure that all the triangles created for every element in the range `⌽⍳A` have the same height so that they can be later concatenated with each other.
```
 ⊖               Flip the matrix vertically again to go back to the original state
 (⊢,  )          Concatenate it with
    ⌽B           itself, but flipped horizontally
,/              Concatenate all triangles formed by the range operator
⊃               The resulting matrix is nested, so this operator "un-nests" it
```
Now the top left part of the pattern is complete. All that's remaining is to flip it vertically and then horizontally.
```
(⊢⍪⊖B)          Concatenate the resulting matrix with itself but flipped vertically
                (the vertically flipped matrix is concatenated below of the original matrix)
                Now the left part of the pattern is complete
(⊢,⌽B)         Concatenate the resulting matrix with itself flipped horizontally
```
And that's it! The output is a character matrix with `/\`s and padded with spaces.
[Answer]
# [05AB1E](https://github.com/Adriandmen/05AB1E), ~~47~~ ~~43~~ ~~41~~ ~~35~~ ~~34~~ ~~33~~ 32 bytes
```
'/×ηηvy∞.C.Bø€∞¹NαGð.ø}})øíJ.B»∞
```
[Try it online!](https://tio.run/##MzBNTDJM/f9fXf/w9HPbz20vq3zUMU/PWc/p8I5HTWuA7EM7/c5tdD@8Qe/wjtpazcM7Dq/10nM6tBso8/@/MQA "05AB1E – Try It Online")
(-4 bytes thanks to @Emigna who suggested 3 improvements)
---
This explanation was for the earlier version, there have been a few iterations since then.
```
>                                          # [2]
 '/×                                       # ['//']
    η                                      # ['/','//']
     €η                                    # [['/'], ['/', '//']]
       vy                    }             # {For each element...}
         ∞                                 # Mirror horizontally.
          ¶¡                               # Split mirror on newlines.
            N£                             # Shave each diamond down a layer.
              .C                           # Horizontal center.
                .B                         # Pad for the transpose.
                  ø                        # Transpose.
                   €∞                      # Mirror each (vertically).
                     ¹NαFð.ø}              # Pad each list for transpose (verticaly).
                              )            # Wrap back to list...
                               €.B         # Pad each horizontally.
                                  ¦        # Remove the random numbers?
                                   ø       # Back to horizontal...
                                    €R     # Reverse to get correct order.
                                      J    # Join, no spaces.
                                       »   # Join newlines.
                                        ∞  # Final horizontal mirror.
```
[Answer]
# [CJam](https://sourceforge.net/p/cjam), ~~65~~ 63 bytes
```
q~_,:)_W%\+f{_2*S*a@2$-*\_,f{)'/*\Se[_W%'/'\er+}_W%Wf%+1$++}zN*
```
[Try it online!](https://tio.run/##S85KzP3/v7AuXsdKMz5cNUY7rTreSCtYK9HBSEVXKyZeJ61aU11fKyY4NRoora6vHpNapF0LZIanqWobqmhr11b5af3/bwoA "CJam – Try It Online")
### Explanation
In this explanation, I will refer to the input number as `n`.
```
q~        e# Read and eval the input (push n to the stack).
_,        e# Copy it an get the range [0 .. n-1].
:)        e# Increment each element to get [1 .. n].
_W%       e# Copy it and reverse it.
\+        e# Prepend the reverse to the original range, resulting in [n n-1 .. 1 1 .. n-1 n].
f{        e# Map over each number x in the range using n as an extra parameter:
 _2*S*a   e#  Push a string containing n*2 spaces, and wrap it in an array.
 @2$-     e#  Push n-x.
 *        e#  Repeat the space string from before n-x times.
 \        e#  Bring x back to the top.
 _,       e#  Copy it and get the range [0 .. x-1].
 f{       e#  Map over each number y in this range, using x as an extra parameter:
  )       e#   Increment y.
  '/*     e#   Repeat '/' y times.
  \Se[    e#   Pad the resulting string to length x by adding spaces to the left.
  _W%     e#   Copy the result and reverse it.
  '/'\er  e#   Replace '/' with '\' in that.
  +       e#   Concatenate to the other string. This forms one row of one diamond.
 }        e#  (end map, now we have the top half of a diamond of size x)
 _W%      e#  Copy the half-diamond and reverse it.
 Wf%      e#  Reverse each row.
 +        e#  Concatenate to the top half. Now we have a full diamond of size x.
 1$++     e#  Put the spaces from before at the beginning and end. This is to pad the top
          e#  and bottom of the smaller diamonds.
}         e# (end map)
z         e# Transpose.
N*        e# Join with newlines. Implicit output.
```
[Answer]
# [Python 2](https://docs.python.org/2/), ~~152~~ ~~147~~ ~~143~~ 140 bytes
-1 byte thanks to musicman523
```
n=input()
r=range(n)
r+=r[::-1]
for x,i in enumerate(r):a,b='/\\\/'[i<x::2];s=' '*(n+~i);print''.join((s+a*n)[:n-j]+(b*-~i+s)[j:]for j in r)
```
[Try it online!](https://tio.run/##Fc2xDoMgEIDh3adgA0RratLllCdBBkxoeyQ9zYmJXXx1Wrd/@v71m98L9aWQRVr3rHTFlgO9oqJ/GssOoL376rmwOBoUSCLS/okcclSsITSzld00TZ10OB4AvR82K4WsFZkT9bAyUpbylhYkpTYTatIOqE3eqLluTzSbdgn8NUgXz7qUxw8 "Python 2 – Try It Online")
This works by chopping the inner columns of the largest diamond to make the smaller ones, using `[0,..,n,n,..,0]` to control the amount of columns to remove.
[Answer]
# Pyth, ~~35~~ 32 bytes
```
j.tsm+Jm.[yQS*"\/"k\ Sd_M_Js__BS
```
[Test suite](https://pyth.herokuapp.com/?code=j.tsm%2BJm.%5ByQS%2a%22%5C%2F%22k%5C+Sd_M_Js__BS&test_suite=1&test_suite_input=1%0A2%0A3%0A4&debug=0)
Done to see how my and @LeakyNun's approaches would differ.
[Answer]
# Dyalog APL, 46
```
{⊃,/⍵∘{'/ \'[2+((-⍪⊖)⌽,-)(-⍺)↑∘.≥⍨⍳⍵]}¨(⌽,⊢)⍳⍵}
```
[Answer]
# [Pyth](https://github.com/isaacg1/pyth), 49 bytes
```
LC.tb)L+_b.rb"\/"js_,J'MsMCyMy_Mm'Myd._._*\/Q__MJ
```
[Try it online!](http://pyth.herokuapp.com/?code=LC.tb%29L%2B_b.rb%22%5C%2F%22js_%2CJ%27MsMCyMy_Mm%27Myd._._%2a%5C%2FQ__MJ&input=4&debug=0)
[Answer]
# [V](https://github.com/DJMcMayhem/V), 38 bytes
```
Àá/Àá\ò2ÙlX$xòÍî
òYGpVæHÄÓ¯¨¯*Ü*©Ü/ ± 
```
[Try it online!](https://tio.run/##AUEAvv92///DgMOhL8OAw6Fcw7Iyw5lsWCR4w7LDjcOuCsOyWUdwVsOmSMOEw5PCr8Kowq8qw5wqwqnDnC8gwrEg////NQ "V – Try It Online")
[Answer]
# [Canvas](https://github.com/dzaima/Canvas), 13 [bytes](https://github.com/dzaima/Canvas/blob/master/files/chartable.md)
```
ＨＨ／ｎ｝！╬＋｝⤢ｒ！║
```
[Try it here!](https://dzaima.github.io/Canvas/?u=JXVGRjI4JXVGRjI4JXVGRjBGJXVGRjRFJXVGRjVEJXVGRjAxJXUyNTZDJXVGRjBCJXVGRjVEJXUyOTIyJXVGRjUyJXVGRjAxJXUyNTUx,i=NA__,v=8)
]