<body><div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000">
We might want to have a "CollectionsExtras" package? :-D<div><br></div><div>Best,</div><div>Marcel</div><div class="mb_sig"></div><blockquote class="history_container" type="cite" style="border-left-style:solid;border-width:1px; margin-top:20px; margin-left:0px;padding-left:10px;">
<p style="color: #AAAAAA; margin-top: 10px;">Am 13.10.2019 22:41:09 schrieb commits@source.squeak.org <commits@source.squeak.org>:</p><div style="font-family:Arial,Helvetica,sans-serif">A new version of Collections was added to project The Inbox:<br>http://source.squeak.org/inbox/Collections-ct.859.mcz<br><br>==================== Summary ====================<br><br>Name: Collections-ct.859<br>Author: ct<br>Time: 13 October 2019, 10:40:56.879932 pm<br>UUID: 5e8fabca-af4e-c640-b6fd-95ebf4a6e424<br>Ancestors: Collections-ct.858<br><br>Proposal: Add string converters #asClassName and #asSelector<br><br>I am aware of #asIdentifier: as well as #asLegalSelector, but this proposal supports readable and convenient selectors<br><br>=============== Diff against Collections-ct.858 ===============<br><br>Item was added:<br>+ ----- Method: String>>asClassName (in category 'converting') -----<br>+ asClassName<br>+ <br>+ ^ (self findFeatures collect: #withFirstCharacterUpshifted) join!<br><br>Item was added:<br>+ ----- Method: String>>asSelector (in category 'converting') -----<br>+ asSelector<br>+ <br>+ | features |<br>+ features := self findFeatures.<br>+ features ifEmpty: [^ Symbol empty].<br>+ ^ ((features allButFirst collect: #withFirstCharacterUpshifted)<br>+ copyWithFirst: features first asLowercase)<br>+ join asSymbol!<br><br><br></div></blockquote>
</div></body>