cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

Rosetta Code - Array Concatenation

StuartBruff
23-Emerald III

Rosetta Code - Array Concatenation

Rosetta Code Task: Array Concatenation

 

References:

1. https://rosettacode.org/wiki/Array_concatenation
2. https://rosettacode.org/wiki/Array_concatenation#Mathcad

 

Task:

Show how to concatenate two arrays in your language.

If this is as simple as array1 + array2, so be it.

 

2020 05 13 B.png

 

Stuart

2 REPLIES 2

There are also other tasks 🤔https://rosettacode.org/wiki/Rosetta_Code 

StuartBruff
23-Emerald III
(To:VladimirN)


@VladimirN wrote:

There are also other tasks 🤔https://rosettacode.org/wiki/Rosetta_Code 


Действительно, есть и другие проблемы, Владимир!

 

https://community.ptc.com/t5/PTC-Mathcad/Rosetta-Code/m-p/663505

http://rosettacode.org/wiki/Category:Mathcad

 

I have a number of solutions to other problems waiting in the wings, but, sadly, rather than being a Belbin Completer-Finisher,  I'm a confirmed Starter-"Ooh! Shiny!"er.   I vaguely recall being categorized as a Plant during team training sessions (probably blue-green algae ...).

 

Indeed, I have two Rosetta Express worksheets currently being developed on two laptops.   I solved both of them in a few lines, but then the Good Idea Fairy paid a visit and I have monstrosities on my hands that I've completely lost track of.  😕

 

As the group famous for having an astrophysicist playing lead guitar might have sung... It started out so well.

 

2021 09 24 A.png

 

But then I got offended by the solution's simplicity, so ...

 

2021 09 24 B.png

 

By the time I reached page 11 ... well, I'm sure I knew at the time what I wanted to do, but in all the excitement, I've kind of lost track of what it was.

 

2021 09 24 C.png

 

What I do know is that I grabbed some of the text from another Rosetta task I've got burbling away in the background.   I've solved it, and it's within a gnat's whisker of actually being complete, but I think it needs a rewrite to make it less amateurish looking (than normal).   The compression code I developed above is different from that used in the 'Collapsible' task, because the latter only needed to deal with short strings, whilst whatever I needed it for in the Hailstone task (and a string justification worksheet I've got on the go) had to handle arbitrary-length strings.  I used an undocumented but incredibly useful feature to get around Mathcad's recursion depth limit.   (I also muttered many oaths and imprecations in the general direction of whoever removed partial application from Prime, as an even more general solution would otherwise have been so, so simple to create ...)

 

2021 09 24 D.png

 

Stuart

 

https://en.wikipedia.org/wiki/Team_Role_Inventories

Announcements

Top Tags