Hi Folks.
If I have an OrderedCollection and convert it to Set via asSet, am I
guaranteed that the resulting Set contains elements in the same order as the
OrderedCollection?
Here is my problem.
I have an OrderedCollection with the same element in it twice. By same
element, I mean they are the same object.
*an OrderedCollection(
A
NESTED TABLE CELL
B
A
NESTED TABLE CELL
)
*
Above, the first and third elements are the same XMLElement. I now this
because if I inspect them and then change one, the other changes.
if I run asSet on the OrderedCollection, I get what I need:
*a Set( A
NESTED TABLE CELL
B)*
In that conversion, can I rely on that Ordering being preserved?
If not, a pointer to the correct select/reject/inject/detect...sort of thing
would be much appreciated.
cheers.
--
Sent from: http://forum.world.st/Squeak-Beginners-f107673.html
Hello Everyone,
I'm very pleased to announce your Squeak Oversight Board for 2020. They
are:
1. Bert Freudenberg
2. Tim Rowledge
3. Marcel Taeumel
4. Craig Latta
5. David T. Lewis
6. Chris Muller
7. John-Reed Maffeo
http://wiki.squeak.org/squeak/6636
I would like to thank everyone that served on the board last year! Thank
you for contributions to Squeak!
Thank you to everyone that ran this year and for everyone that voted! We
are looking forward to a great year in the Squeak community!
Please help me to congratulate your new board for 2020!!
All the best,
Ron Teitelbaum
Hi all.
In Emacs, I have an "untabify" command I can run on a buffer.
I would like to do the same thing in a workspace so that I can align all my
stuff.
For example, here is a section of my Parser Expression Grammar where I would
like to
align all the '<-'
*Page <- ( Remove / Break / ReturnOne / Style / Structure /
Paragraph )*
Flow <- ReturnOne / Remove / Break / Style / Structure
/ .
Structure <- Break / Div / HorizontalRule / List / Link /
TableMergedRow / TableWellFormed / Transclusion
Style <- TextFormatting / NameDate / Heading
Paragraph <- ^Flow{1, EndOfLine EndOfLine}
Break <- ^EndOfLine ^EndOfLine /*
https://en.wikipedia.org/wiki/Help:Wikitext#Line_breaks */
ReturnOne <- ^EndOfLine
Transclusion <- "{{" .+ "}}"*
I would also like to remove all the "trailing spaces" after the last
character before a newline.
Is this doable?
thanks in advance.
--
Sent from: http://forum.world.st/Squeak-Beginners-f107673.html