<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">This is interesting, I was kind of thinking along these lines too, that map and switch expressions had some similarity. In my proposal, as an aside, I briefly mention it as a possibility, I was thinking you could make the control value an array or dictionary and each element could be transformed using cases. My thoughts were the other way from what you suggest though, where you could map a container of values repetitively apply directly on the switch expression, without the word map. What you are suggesting, and apparently Scala, has is a way to use map with cases in it, presumably that works on arrays and dictionaries too. &nbsp;<div class=""><br class=""></div><div class="">From my proposal: if the ? operator could be used on containers as the control value, it would repetitively apply the expression on each element in the dictionary or an array.&nbsp;</div><div class=""><br class=""><div class=""><pre style="box-sizing: border-box; overflow: auto; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 14px; margin-top: 0px; margin-bottom: 0px; line-height: 1.45; padding: 16px; background-color: rgb(247, 247, 247); border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-wrap: normal; word-break: normal;" class=""><span style="color: rgb(119, 119, 119);" class="">[<span class="pl-k" style="box-sizing: border-box; color: rgb(167, 29, 93);">.</span>North: <span class="pl-s" style="box-sizing: border-box; color: rgb(24, 54, 145);"><span class="pl-pds" style="box-sizing: border-box;">"</span>North<span class="pl-pds" style="box-sizing: border-box;">"</span></span>, <span class="pl-k" style="box-sizing: border-box; color: rgb(167, 29, 93);">.</span>South: <span class="pl-s" style="box-sizing: border-box; color: rgb(24, 54, 145);"><span class="pl-pds" style="box-sizing: border-box;">"</span>South<span class="pl-pds" style="box-sizing: border-box;">"</span></span>, <span class="pl-k" style="box-sizing: border-box; color: rgb(167, 29, 93);">.</span>East: <span class="pl-s" style="box-sizing: border-box; color: rgb(24, 54, 145);"><span class="pl-pds" style="box-sizing: border-box;">"</span>East<span class="pl-pds" style="box-sizing: border-box;">"</span></span>, <span class="pl-k" style="box-sizing: border-box; color: rgb(167, 29, 93);">.</span>West: <span class="pl-s" style="box-sizing: border-box; color: rgb(24, 54, 145);"><span class="pl-pds" style="box-sizing: border-box;">"</span>West<span class="pl-pds" style="box-sizing: border-box;">"</span></span>, <span class="pl-k" style="box-sizing: border-box; color: rgb(167, 29, 93);">.</span>Stay: <span class="pl-s" style="box-sizing: border-box; color: rgb(24, 54, 145);"><span class="pl-pds" style="box-sizing: border-box;">"</span>Stay<span class="pl-pds" style="box-sizing: border-box;">"</span></span>] ?(        
    </span><font color="#e32400" class="">case</font><font color="#777777" class=""> </font><span class="pl-k" style="color: rgb(167, 29, 93); box-sizing: border-box;">.</span><font color="#777777" class="">North: ( </font><span class="pl-c1" style="color: rgb(0, 134, 179); box-sizing: border-box;">0</span><font color="#777777" class="">, </font><span class="pl-c1" style="color: rgb(0, 134, 179); box-sizing: border-box;">-1</span><font color="#777777" class="">) 
    </font><font color="#ff2600" class="">case</font><font color="#777777" class=""> </font><span class="pl-k" style="color: rgb(167, 29, 93); box-sizing: border-box;">.</span><font color="#777777" class="">South: ( </font><span class="pl-c1" style="color: rgb(0, 134, 179); box-sizing: border-box;">0</span><font color="#777777" class="">,  </font><span class="pl-c1" style="color: rgb(0, 134, 179); box-sizing: border-box;">1</span><font color="#777777" class="">)
    </font><font color="#ff2600" class="">case</font><font color="#777777" class=""> </font><span class="pl-k" style="color: rgb(167, 29, 93); box-sizing: border-box;">.</span><font color="#777777" class="">East:  (</font><span class="pl-c1" style="color: rgb(0, 134, 179); box-sizing: border-box;">-1</span><font color="#777777" class="">,  </font><span class="pl-c1" style="color: rgb(0, 134, 179); box-sizing: border-box;">0</span><font color="#777777" class="">)
    </font><font color="#ff2600" class="">case</font><font color="#777777" class=""> </font><span class="pl-k" style="color: rgb(167, 29, 93); box-sizing: border-box;">.</span><font color="#777777" class="">West:  ( </font><span class="pl-c1" style="color: rgb(0, 134, 179); box-sizing: border-box;">1</span><font color="#777777" class="">,  </font><span class="pl-c1" style="color: rgb(0, 134, 179); box-sizing: border-box;">0</span><font color="#777777" class="">)
    </font><font color="#ff2600" class="">case</font><font color="#777777" class=""> _:      ( </font><span class="pl-c1" style="color: rgb(0, 134, 179); box-sizing: border-box;">0</span><font color="#777777" class="">,  </font><span class="pl-c1" style="color: rgb(0, 134, 179); box-sizing: border-box;">0</span><font color="#777777" class="">)
)</font></pre><div class=""><br class=""></div></div><div class=""><div class="">This provides a way to do a quick mapping that may not have been originally designed into the data structure which could be useful, and seems pretty powerful.&nbsp;</div><div class=""><br class=""></div><div class="">What you are saying, I think, correct me if I am wrong, is that “map" could be applied on both containers and non-containers and “map” would be extended to support the switch like expression. I think exploring container types, even objects and structs, as the control value would be useful. This may lead to something useful, &nbsp;and make sure that what is being proposed can support it in the future if not in the first release.&nbsp;</div><div class=""><br class=""></div><div class="">- Paul</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 7, 2016, at 9:14 PM, Craig Cruden &lt;<a href="mailto:ccruden@novafore.com" class="">ccruden@novafore.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">(forgot the other colons which would also become “in” not “:”<div class=""><br class=""></div><div class=""><div class=""><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><font color="#bb2ca2" class="">let commission =&nbsp;</font><span class="" style="color: rgb(79, 129, 135);">trade</span><span class="">.map {</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="color: rgb(187, 44, 162);"><span class="Apple-tab-span" style="white-space: pre;">        </span>case</span>&nbsp;.Buy(<span class="" style="color: rgb(187, 44, 162);">let</span>&nbsp;quantity,&nbsp;<span class="" style="color: rgb(187, 44, 162);">let</span>&nbsp;price)&nbsp;<span class="" style="color: rgb(187, 44, 162);">where</span>&nbsp;<span class="" style="color: rgb(112, 61, 170);">Double</span>(quantity) * price &gt;&nbsp;<span class="" style="color: rgb(39, 42, 216);">10000 in</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;">&nbsp; &nbsp;&nbsp;<span class="Apple-tab-span" style="white-space: pre;">                </span><span class="" style="color: rgb(112, 61, 170);">Double</span>(quantity) * price *&nbsp;<span class="" style="color: rgb(79, 129, 135);">vipCommissionRate</span>&nbsp;/&nbsp;<span class="" style="color: rgb(39, 42, 216);">100</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="color: rgb(187, 44, 162);"><span class="Apple-tab-span" style="white-space: pre;">        </span>case</span>&nbsp;.Buy(<span class="" style="color: rgb(187, 44, 162);">let</span>&nbsp;quantity,&nbsp;<span class="" style="color: rgb(187, 44, 162);">let</span>&nbsp;price) in</div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;">&nbsp; &nbsp;&nbsp;<span class="Apple-tab-span" style="white-space: pre;">                </span><span class="" style="color: rgb(112, 61, 170);">Double</span>(quantity) * price *&nbsp;<span class="" style="color: rgb(79, 129, 135);">commissionRate</span>&nbsp;/&nbsp;<span class="" style="color: rgb(39, 42, 216);">100</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="color: rgb(187, 44, 162);"><span class="Apple-tab-span" style="white-space: pre;">        </span>case</span>&nbsp;.Sell(<span class="" style="color: rgb(187, 44, 162);">let</span>&nbsp;quantity,&nbsp;<span class="" style="color: rgb(187, 44, 162);">let</span>&nbsp;price)&nbsp;<span class="" style="color: rgb(187, 44, 162);">where</span>&nbsp;<span class="" style="color: rgb(112, 61, 170);">Double</span>(quantity) * price &gt;&nbsp;<span class="" style="color: rgb(39, 42, 216);">10000 in</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;">&nbsp; &nbsp;&nbsp;<span class="Apple-tab-span" style="white-space: pre;">                </span><span class="" style="color: rgb(112, 61, 170);">Double</span>(quantity) * price *&nbsp;<span class="" style="color: rgb(79, 129, 135);">vipCommissionRate</span>&nbsp;/&nbsp;<span class="" style="color: rgb(39, 42, 216);">100</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="color: rgb(187, 44, 162);"><span class="Apple-tab-span" style="white-space: pre;">        </span>case</span>&nbsp;.Sell(<span class="" style="color: rgb(187, 44, 162);">let</span>&nbsp;quantity,&nbsp;<span class="" style="color: rgb(187, 44, 162);">let</span>&nbsp;price) in</div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;">&nbsp; &nbsp;&nbsp;<span class="Apple-tab-span" style="white-space: pre;">                </span><span class="" style="color: rgb(112, 61, 170);">Double</span>(quantity) * price *&nbsp;<span class="" style="color: rgb(79, 129, 135);">commissionRate</span>&nbsp;/&nbsp;<span class="" style="color: rgb(39, 42, 216);">100</span></div></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="color: rgb(39, 42, 216);">}</span></div><div class=""><span class="" style="color: rgb(39, 42, 216);"><br class=""></span></div><div class=""><span class="" style="color: rgb(39, 42, 216);"><br class=""></span></div><div class=""><span class="" style="color: rgb(39, 42, 216);"><br class=""></span></div><div class=""><blockquote type="cite" class=""><div class="">On 2016-01-08, at 12:11:43, Craig Cruden &lt;<a href="mailto:ccruden@novafore.com" class="">ccruden@novafore.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">I was thinking about this a bit, and was thinking that maybe we would not need a new keyword at all but just use `map` with pattern matching `case` clauses. &nbsp;It would mean adding `map` to individual values — or anything that we might want to use as input for matching. &nbsp;</div><div class=""><br class=""></div><div class="">Reference scala (section 8.5) pattern matching:&nbsp;<a href="http://www.scala-lang.org/docu/files/ScalaReference.pdf" class="">http://www.scala-lang.org/docu/files/ScalaReference.pdf</a></div><div class=""><br class=""></div><div class="">In scala inside `map` and `filter` (unfortunately not on things like `reduceLeft` or `foldLeft`&nbsp;you can specify pattern matching anonymous functions as such:</div><div class=""><br class=""></div><div class=""><div class=""><div class="">val num = List(1, 5, 7)</div><div class=""><br class=""></div><div class="">num.map {</div><div class="">&nbsp; case x if x &lt; 5 =&gt; x + 1</div><div class="">&nbsp; case x =&gt; x - 1</div><div class="">}</div></div><div class=""><br class=""></div><div class="">output:&nbsp;List(2, 4, 6)</div><div class=""><br class=""></div><div class="">So if the pattern matching was added (I don’t believe Swift currently allows case classes in maps - but then I am rather junior in the language) Swift would not need a `match expression` it would simply be part of map and become something like:</div><div class=""><br class=""></div><div class=""><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><font color="#bb2ca2" class="">let commission =&nbsp;</font><span class="" style="color: rgb(79, 129, 135);">trade</span><span class="">.map {</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="color: rgb(187, 44, 162);"><span class="Apple-tab-span" style="white-space:pre">        </span>case</span>&nbsp;.Buy(<span class="" style="color: rgb(187, 44, 162);">let</span>&nbsp;quantity,&nbsp;<span class="" style="color: rgb(187, 44, 162);">let</span>&nbsp;price)&nbsp;<span class="" style="color: rgb(187, 44, 162);">where</span>&nbsp;<span class="" style="color: rgb(112, 61, 170);">Double</span>(quantity) * price &gt;&nbsp;<span class="" style="color: rgb(39, 42, 216);">10000 in</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;">&nbsp; &nbsp;&nbsp;<span class="Apple-tab-span" style="white-space:pre">                </span><span class="" style="color: rgb(112, 61, 170);">Double</span>(quantity) * price *&nbsp;<span class="" style="color: rgb(79, 129, 135);">vipCommissionRate</span>&nbsp;/&nbsp;<span class="" style="color: rgb(39, 42, 216);">100</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="color: rgb(187, 44, 162);"><span class="Apple-tab-span" style="white-space:pre">        </span>case</span>&nbsp;.Buy(<span class="" style="color: rgb(187, 44, 162);">let</span>&nbsp;quantity,&nbsp;<span class="" style="color: rgb(187, 44, 162);">let</span>&nbsp;price):</div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;">&nbsp; &nbsp;&nbsp;<span class="Apple-tab-span" style="white-space:pre">                </span><span class="" style="color: rgb(112, 61, 170);">Double</span>(quantity) * price *&nbsp;<span class="" style="color: rgb(79, 129, 135);">commissionRate</span>&nbsp;/&nbsp;<span class="" style="color: rgb(39, 42, 216);">100</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="color: rgb(187, 44, 162);"><span class="Apple-tab-span" style="white-space:pre">        </span>case</span>&nbsp;.Sell(<span class="" style="color: rgb(187, 44, 162);">let</span>&nbsp;quantity,&nbsp;<span class="" style="color: rgb(187, 44, 162);">let</span>&nbsp;price)&nbsp;<span class="" style="color: rgb(187, 44, 162);">where</span>&nbsp;<span class="" style="color: rgb(112, 61, 170);">Double</span>(quantity) * price &gt;&nbsp;<span class="" style="color: rgb(39, 42, 216);">10000</span>:</div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;">&nbsp; &nbsp;&nbsp;<span class="Apple-tab-span" style="white-space:pre">                </span><span class="" style="color: rgb(112, 61, 170);">Double</span>(quantity) * price *&nbsp;<span class="" style="color: rgb(79, 129, 135);">vipCommissionRate</span>&nbsp;/&nbsp;<span class="" style="color: rgb(39, 42, 216);">100</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="color: rgb(187, 44, 162);"><span class="Apple-tab-span" style="white-space:pre">        </span>case</span>&nbsp;.Sell(<span class="" style="color: rgb(187, 44, 162);">let</span>&nbsp;quantity,&nbsp;<span class="" style="color: rgb(187, 44, 162);">let</span>&nbsp;price):</div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;">&nbsp; &nbsp;&nbsp;<span class="Apple-tab-span" style="white-space:pre">                </span><span class="" style="color: rgb(112, 61, 170);">Double</span>(quantity) * price *&nbsp;<span class="" style="color: rgb(79, 129, 135);">commissionRate</span>&nbsp;/&nbsp;<span class="" style="color: rgb(39, 42, 216);">100</span></div></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="color: rgb(39, 42, 216);">}</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="color: rgb(39, 42, 216);"><br class=""></span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="color: rgb(39, 42, 216);"><br class=""></span></div><div class=""><span class="" style="color: rgb(39, 42, 216);"><br class=""></span></div><div class=""><br class=""></div></div><div class=""><blockquote type="cite" class=""><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""></div><div class="">But if we go with brackets then I would recommend something like this:&nbsp;</div><div class=""><br class=""></div><div class=""><span style="color: rgb(187, 44, 162); font-family: Menlo; font-size: 11px;" class="">let </span><span style="font-family: Menlo; font-size: 11px;" class="">commission</span><span style="color: rgb(187, 44, 162); font-family: Menlo; font-size: 11px;" class=""> =</span><span class="" style="color: rgb(187, 44, 162); font-family: Menlo; font-size: 11px;">&nbsp;match (</span><span style="color: rgb(79, 129, 135); font-family: Menlo; font-size: 11px;" class="">trade) </span><span style="font-family: Menlo; font-size: 11px;" class=""><font color="#bb2ca2" class="">{</font></span></div><blockquote style="margin: 0px 0px 0px 40px; border: none; padding: 0px;" class=""><div class=""><span class="" style="font-family: Menlo; font-size: 11px; color: rgb(187, 44, 162);">case</span><span style="font-family: Menlo; font-size: 11px;" class="">&nbsp;</span><span style="font-family: Menlo; font-size: 11px;" class="">.Buy(</span><span class="" style="font-family: Menlo; font-size: 11px; color: rgb(187, 44, 162);">let</span><span style="font-family: Menlo; font-size: 11px;" class="">&nbsp;</span><span style="font-family: Menlo; font-size: 11px;" class="">quantity,</span><span style="font-family: Menlo; font-size: 11px;" class="">&nbsp;</span><span class="" style="font-family: Menlo; font-size: 11px; color: rgb(187, 44, 162);">let</span><span style="font-family: Menlo; font-size: 11px;" class="">&nbsp;</span><span style="font-family: Menlo; font-size: 11px;" class="">price)</span><span style="font-family: Menlo; font-size: 11px;" class="">&nbsp;</span><span class="" style="font-family: Menlo; font-size: 11px; color: rgb(187, 44, 162);">where</span><span style="font-family: Menlo; font-size: 11px;" class="">&nbsp;</span><span class="" style="font-family: Menlo; font-size: 11px; color: rgb(112, 61, 170);">Double</span><span style="font-family: Menlo; font-size: 11px;" class="">(quantity) * price &gt;</span><span style="font-family: Menlo; font-size: 11px;" class="">&nbsp;</span><span class="" style="font-family: Menlo; font-size: 11px; color: rgb(39, 42, 216);">10000</span><span style="font-family: Menlo; font-size: 11px;" class="">:</span></div><div class=""><span style="font-family: Menlo; font-size: 11px;" class="">&nbsp; &nbsp;</span><span style="font-family: Menlo; font-size: 11px;" class="">&nbsp;</span><span class="" style="font-family: Menlo; font-size: 11px; color: rgb(112, 61, 170);">Double</span><span style="font-family: Menlo; font-size: 11px;" class="">(quantity) * price *</span><span style="font-family: Menlo; font-size: 11px;" class="">&nbsp;</span><span class="" style="font-family: Menlo; font-size: 11px; color: rgb(79, 129, 135);">vipCommissionRate</span><span style="font-family: Menlo; font-size: 11px;" class="">&nbsp;</span><span style="font-family: Menlo; font-size: 11px;" class="">/</span><span style="font-family: Menlo; font-size: 11px;" class="">&nbsp;</span><span class="" style="font-family: Menlo; font-size: 11px; color: rgb(39, 42, 216);">100</span></div><div class=""><span class="" style="font-family: Menlo; font-size: 11px; color: rgb(187, 44, 162);">case</span><span style="font-family: Menlo; font-size: 11px;" class="">&nbsp;</span><span style="font-family: Menlo; font-size: 11px;" class="">.Buy(</span><span class="" style="font-family: Menlo; font-size: 11px; color: rgb(187, 44, 162);">let</span><span style="font-family: Menlo; font-size: 11px;" class="">&nbsp;</span><span style="font-family: Menlo; font-size: 11px;" class="">quantity,</span><span style="font-family: Menlo; font-size: 11px;" class="">&nbsp;</span><span class="" style="font-family: Menlo; font-size: 11px; color: rgb(187, 44, 162);">let</span><span style="font-family: Menlo; font-size: 11px;" class="">&nbsp;</span><span style="font-family: Menlo; font-size: 11px;" class="">price):</span></div><div class=""><span style="font-family: Menlo; font-size: 11px;" class="">&nbsp; &nbsp;</span><span style="font-family: Menlo; font-size: 11px;" class="">&nbsp;</span><span class="" style="font-family: Menlo; font-size: 11px; color: rgb(112, 61, 170);">Double</span><span style="font-family: Menlo; font-size: 11px;" class="">(quantity) * price *</span><span style="font-family: Menlo; font-size: 11px;" class="">&nbsp;</span><span class="" style="font-family: Menlo; font-size: 11px; color: rgb(79, 129, 135);">commissionRate</span><span style="font-family: Menlo; font-size: 11px;" class="">&nbsp;</span><span style="font-family: Menlo; font-size: 11px;" class="">/</span><span style="font-family: Menlo; font-size: 11px;" class="">&nbsp;</span><span class="" style="font-family: Menlo; font-size: 11px; color: rgb(39, 42, 216);">100</span></div><div class=""><span class="" style="font-family: Menlo; font-size: 11px; color: rgb(187, 44, 162);">case</span><span style="font-family: Menlo; font-size: 11px;" class="">&nbsp;</span><span style="font-family: Menlo; font-size: 11px;" class="">.Sell(</span><span class="" style="font-family: Menlo; font-size: 11px; color: rgb(187, 44, 162);">let</span><span style="font-family: Menlo; font-size: 11px;" class="">&nbsp;</span><span style="font-family: Menlo; font-size: 11px;" class="">quantity,</span><span style="font-family: Menlo; font-size: 11px;" class="">&nbsp;</span><span class="" style="font-family: Menlo; font-size: 11px; color: rgb(187, 44, 162);">let</span><span style="font-family: Menlo; font-size: 11px;" class="">&nbsp;</span><span style="font-family: Menlo; font-size: 11px;" class="">price)</span><span style="font-family: Menlo; font-size: 11px;" class="">&nbsp;</span><span class="" style="font-family: Menlo; font-size: 11px; color: rgb(187, 44, 162);">where</span><span style="font-family: Menlo; font-size: 11px;" class="">&nbsp;</span><span class="" style="font-family: Menlo; font-size: 11px; color: rgb(112, 61, 170);">Double</span><span style="font-family: Menlo; font-size: 11px;" class="">(quantity) * price &gt;</span><span style="font-family: Menlo; font-size: 11px;" class="">&nbsp;</span><span class="" style="font-family: Menlo; font-size: 11px; color: rgb(39, 42, 216);">10000</span><span style="font-family: Menlo; font-size: 11px;" class="">:</span></div><div class=""><span style="font-family: Menlo; font-size: 11px;" class="">&nbsp; &nbsp;</span><span style="font-family: Menlo; font-size: 11px;" class="">&nbsp;</span><span class="" style="font-family: Menlo; font-size: 11px; color: rgb(112, 61, 170);">Double</span><span style="font-family: Menlo; font-size: 11px;" class="">(quantity) * price *</span><span style="font-family: Menlo; font-size: 11px;" class="">&nbsp;</span><span class="" style="font-family: Menlo; font-size: 11px; color: rgb(79, 129, 135);">vipCommissionRate</span><span style="font-family: Menlo; font-size: 11px;" class="">&nbsp;</span><span style="font-family: Menlo; font-size: 11px;" class="">/</span><span style="font-family: Menlo; font-size: 11px;" class="">&nbsp;</span><span class="" style="font-family: Menlo; font-size: 11px; color: rgb(39, 42, 216);">100</span></div><div class=""><span class="" style="font-family: Menlo; font-size: 11px; color: rgb(187, 44, 162);">case</span><span style="font-family: Menlo; font-size: 11px;" class="">&nbsp;</span><span style="font-family: Menlo; font-size: 11px;" class="">.Sell(</span><span class="" style="font-family: Menlo; font-size: 11px; color: rgb(187, 44, 162);">let</span><span style="font-family: Menlo; font-size: 11px;" class="">&nbsp;</span><span style="font-family: Menlo; font-size: 11px;" class="">quantity,</span><span style="font-family: Menlo; font-size: 11px;" class="">&nbsp;</span><span class="" style="font-family: Menlo; font-size: 11px; color: rgb(187, 44, 162);">let</span><span style="font-family: Menlo; font-size: 11px;" class="">&nbsp;</span><span style="font-family: Menlo; font-size: 11px;" class="">price):</span></div><div class=""><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class=""><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;">&nbsp; &nbsp;&nbsp;<span class="" style="color: rgb(112, 61, 170);">Double</span>(quantity) * price *&nbsp;<span class="" style="color: rgb(79, 129, 135);">commissionRate</span>&nbsp;/&nbsp;<span class="" style="color: rgb(39, 42, 216);">100</span></div></div></div></div></blockquote><div class=""><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class=""><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><font color="#272ad8" class="">}</font></div></div></div></div></div></div></blockquote></div><br class=""></div></div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""></div></div></div></body></html>