| Summary: | [EOL] Collection#concat/0 (was Collection#join) | ||
|---|---|---|---|
| Product: | [Modeling] Epsilon | Reporter: | Louis Rose <louis> |
| Component: | Core | Assignee: | Louis Rose <louis> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | interim | ||
I've added join to CollectionOperationContributor, added some tests to CollectionTests and updated the Epsilon book. Assigning to Dimitris for build integration; thanks! In fact, there is already a concat operator that is equivalent to join/1. I've removed join/0 and join/1 and added concat/0. This was fixed no later than interim build 0.9.0.201104180016. Fixed in 0.9.1 |
I've been using a Collection#join method for a lot of EGL templates, and I think it's time to promote it to a built-in method in EOL: var s = Sequence{'foo','bar','baz'} s.join() -> 'foobarbaz' s.join('-') -> 'foo-bar-baz' Collection#join(pattern) is the inverse of String#split(pattern)