I think that you are right on this, when looking at one of the examples (server.swift) it seems that people are paid by characters typed and they forget (or never heard of) the mantra DRY (Don&#x27;t Repeat Yourself):<p>func fdSet(fd: Int32, inout set: fd_set) {<p><pre><code>		let intOffset = Int(fd &#x2F; 16)

		let bitOffset: Int = Int(fd % 16)

		let mask: Int = 1 &lt;&lt; bitOffset

		switch intOffset {

		case 0: set.__fds_bits.0 = set.__fds_bits.0 | mask

		case 1: set.__fds_bits.1 = set.__fds_bits.1 | mask

		case 2: set.__fds_bits.2 = set.__fds_bits.2 | mask

		case 3: set.__fds_bits.3 = set.__fds_bits.3 | mask

		case 4: set.__fds_bits.4 = set.__fds_bits.4 | mask

		case 5: set.__fds_bits.5 = set.__fds_bits.5 | mask

		case 6: set.__fds_bits.6 = set.__fds_bits.6 | mask

		case 7: set.__fds_bits.7 = set.__fds_bits.7 | mask

		case 8: set.__fds_bits.8 = set.__fds_bits.8 | mask

		case 9: set.__fds_bits.9 = set.__fds_bits.9 | mask

		case 10: set.__fds_bits.10 = set.__fds_bits.10 | mask

		case 11: set.__fds_bits.11 = set.__fds_bits.11 | mask

		case 12: set.__fds_bits.12 = set.__fds_bits.12 | mask

		case 13: set.__fds_bits.13 = set.__fds_bits.13 | mask

		case 14: set.__fds_bits.14 = set.__fds_bits.14 | mask

		case 15: set.__fds_bits.15 = set.__fds_bits.15 | mask

		default: break

		}

	}</code></pre>