My last post reminded me of this.
What in the world is:
⟳ o: other ¦ force (o, @ o.key) ⟲
and
∀ o: other ¦ item (@ o.key) = o
Answer: it is the implementation and post-condition of `merge' from HASH_TABLE, but ... WHY?
I know the mathematicians here love this stuff, but it sure is hard for me. Because I don't use these constructs often, I have to always look them up. But that is the problem. I don't mind the construct, if I could easily get it translated. Where do you find a explanation of these constructs. How do I google it?
I duck-duck-goed this: "y = (x > 10) ? (x * 2) : (x / 2)". Since I don't use C++ very much, this was a bit obfuscated. Took three tries with duck-duck. Put "C++" before it and "meaning" after it and voila, the search assistant explained it nicely.
Internet searching for the above Eiffel construct [or most things Eiffel] rarely gives meaningful answers. It is really frustrating.
Any advice? [other than, "write it down this time, Johnson!]
thanks,
jjj