# Letter Interpolate [duplicate]

This is a fairly simple challenge. Given a lower-case word, you must "interpolate" between letters. Here's some examples to hopefully clarify this:

Input: test Output: tsrqponmlkjihefghijklmnopqrst

Between letters you must add, in alphabetical order, the letters between those two letters. So if you have ad, you must output abcd. If you are given da, you must output dcba.

If the letters are next to each other in the alphabet, nothing happens:

Input: hi Output: hi

Assume the input contains a lower-case word consisting of ASCII letters only; no spaces, symbols, etc. The input is also never empty.

Lowest byte count wins; this is code-golf. If you have any questions please comment.

• What is the output for too? tsrqpo, tsrqpoo, tsrqpooo, something else? Jan 30 '17 at 17:54
• Duplicate? (numbers instead of characters).
– nimi
Jan 30 '17 at 17:58
• I agree that it's a duplicate - converting between ASCII characters and numbers is a minor difference.
– user45941
Jan 30 '17 at 18:06
• Unless McMastery clarifies on Jonathan's question and there is some significant difference regarding that Jan 30 '17 at 18:08

# 05AB1E, 4 bytes

ÇŸçJ


Try it online!

Honestly? I don't know why this works.

Ç    # Push characters as ASCII.
Ÿ   # Supposed to be range from [a, .., b], apparently vectorizes on lists...
çJ # Turn back into characters, join stack.

• I've seen this use for Ÿ before. It's a pretty cool feature Jan 30 '17 at 18:03
• It's mis-documented slightly, hence my surprise :P. Ÿ 24 = pop a,b push [a, ..., b] Jan 30 '17 at 18:16