Post History
Vyxal 3, 93 bytes "◌Ṫ£ZN≊◌∪0⑤①_¿0∑wæ↻∥”⌈:"⑵3oẄ↻∑Ṭ▦]ƶÞ⇩Πf%Ww%⎋”⌈:£X'-¨j7ʁ9×↜⎀"W③j?boδyjrKϾ⑷Dᑂ0⎄↯⇄℈t⎘ ★µ”⌈$J¥$JF› Vyxal It Online! "◌Ṫ£ZN≊◌∪0⑤①_¿0∑wæ↻∥”⌈:"⑵3oẄ↻∑Ṭ▦]ƶÞ⇩Πf%Ww%⎋”⌈:£X'-¨j7ʁ9×↜⎀"W③j?...
#2: Post edited
- # [Vyxal 3](https://github.com/Vyxal/Vyxal/tree/version-3/), 93 bytes
- ```
- "◌Ṫ£ZN≊◌∪0⑤①_¿0∑wæ↻∥”⌈:"⑵3oẄ↻∑Ṭ▦]ƶÞ⇩Πf%Ww%⎋”⌈:£X'-¨j7ʁ9×↜⎀"W③j?boδyjrKϾ⑷Dᑂ0⎄↯⇄℈t⎘ ★µ”⌈$J¥$JF›
- ```
- [Vyxal It Online!](https://vyxal.github.io/latest.html#H4sIAAAAAAAAA6tWSssvyk0sUbIy1lHKSE1MSS1SslJS0lFKzk9JBbJilB5N73m4c9WhxVF-jzq7gJxHHasMHk1c8mjigvhD-w0edUwsP7zsUdvuRx1LHzXMfdTTYQXUMnGrcf7DXS1g4YkPd655NG1Z7LFth-c9al95bkGaani56qO-bqjyQ4sj1HUPrcgyP9VoeXj6o7Y5j_oaYpTCH01clGWflH9uS2VWkff5fY8mbnd5OLHJ4FEf0NT1j9pbHrV0lDzqm6HwaEbroa0Qo1S8Di1V8XJ71LAL6P60_PwSmF_SchLTi5WsomN1lDLzCkpLQOxoJfei_NICBUMlnWilvMy81JJKpdhYoIqy1KLizPw8oE5jPUNDPQOlWgCG_IXhJAEAAA)
Naive implementation.- ```
- "◌Ṫ£ZN≊◌∪0⑤①_¿0∑wæ↻∥”⌈:"⑵3oẄ↻∑Ṭ▦]ƶÞ⇩Πf%Ww%⎋”⌈:£X'-¨j7ʁ9×↜⎀"W③j?boδyjrKϾ⑷Dᑂ0⎄↯⇄℈t⎘ ★µ”⌈$J¥$JF›
- "◌Ṫ£ZN≊◌∪0⑤①_¿0∑wæ↻∥” # Push the string "twenty thirty forty fifty sixty seventy eighty ninety"
- ⌈ # Split the string on spaces
- : # Duplicate
- "⑵3oẄ↻∑Ṭ▦]ƶÞ⇩Πf%Ww%⎋” # Push the string "one two three four five six seven eight nine"
- ⌈ # Split the string on spaces
- :£ # Put a copy in the register
- X # Cartesian product
- '-¨j # Join each element in the resulting list by "-"
- # We now have the list ["twenty-one", "twenty-two", ..., "thirty-one", "thirty-two", ..., "ninety-nine"]
- ↜⎀ # Insert the elements of the first list into the result using the following indices:
- 7ʁ # Range [0, 7]
- 9× # Multiply by 9
- # We now have the list ["twenty", "twenty-one", ..., "thirty", "thirty-one", ..., "ninety-nine"]
- "W③j?boδyjrKϾ⑷Dᑂ0⎄↯⇄℈t⎘ ★µ” # Push the string "ten eleven twelve thirteen fourteen fifteen sixteen seventeen eighteen nineteen"
- ⌈ # Split the string on spaces
- $J # Prepend that to the list we're building
- ¥$J # Prepend the list in the register to the list we're building
- F # Get index of input in the list
- › # Increment
- 💎
- ```
- Created with the help of [Luminespire](https://vyxal.github.io/Luminespire).
- # [Vyxal 3](https://github.com/Vyxal/Vyxal/tree/version-3/), 93 bytes
- ```
- "◌Ṫ£ZN≊◌∪0⑤①_¿0∑wæ↻∥”⌈:"⑵3oẄ↻∑Ṭ▦]ƶÞ⇩Πf%Ww%⎋”⌈:£X'-¨j7ʁ9×↜⎀"W③j?boδyjrKϾ⑷Dᑂ0⎄↯⇄℈t⎘ ★µ”⌈$J¥$JF›
- ```
- [Vyxal It Online!](https://vyxal.github.io/latest.html#H4sIAAAAAAAAA6tWSssvyk0sUbIy1lHKSE1MSS1SslJS0lFKzk9JBbJilB5N73m4c9WhxVF-jzq7gJxHHasMHk1c8mjigvhD-w0edUwsP7zsUdvuRx1LHzXMfdTTYQXUMnGrcf7DXS1g4YkPd655NG1Z7LFth-c9al95bkGaani56qO-bqjyQ4sj1HUPrcgyP9VoeXj6o7Y5j_oaYpTCH01clGWflH9uS2VWkff5fY8mbnd5OLHJ4FEf0NT1j9pbHrV0lDzqm6HwaEbroa0Qo1S8Di1V8XJ71LAL6P60_PwSmF_SchLTi5WsomN1lDLzCkpLQOxoJfei_NICBUMlnWilvMy81JJKpdhYoIqy1KLizPw8oE5jPUNDPQOlWgCG_IXhJAEAAA)
- ```
- "◌Ṫ£ZN≊◌∪0⑤①_¿0∑wæ↻∥”⌈:"⑵3oẄ↻∑Ṭ▦]ƶÞ⇩Πf%Ww%⎋”⌈:£X'-¨j7ʁ9×↜⎀"W③j?boδyjrKϾ⑷Dᑂ0⎄↯⇄℈t⎘ ★µ”⌈$J¥$JF›
- "◌Ṫ£ZN≊◌∪0⑤①_¿0∑wæ↻∥” # Push the string "twenty thirty forty fifty sixty seventy eighty ninety"
- ⌈ # Split the string on spaces
- : # Duplicate
- "⑵3oẄ↻∑Ṭ▦]ƶÞ⇩Πf%Ww%⎋” # Push the string "one two three four five six seven eight nine"
- ⌈ # Split the string on spaces
- :£ # Put a copy in the register
- X # Cartesian product
- '-¨j # Join each element in the resulting list by "-"
- # We now have the list ["twenty-one", "twenty-two", ..., "thirty-one", "thirty-two", ..., "ninety-nine"]
- ↜⎀ # Insert the elements of the first list into the result using the following indices:
- 7ʁ # Range [0, 7]
- 9× # Multiply by 9
- # We now have the list ["twenty", "twenty-one", ..., "thirty", "thirty-one", ..., "ninety-nine"]
- "W③j?boδyjrKϾ⑷Dᑂ0⎄↯⇄℈t⎘ ★µ” # Push the string "ten eleven twelve thirteen fourteen fifteen sixteen seventeen eighteen nineteen"
- ⌈ # Split the string on spaces
- $J # Prepend that to the list we're building
- ¥$J # Prepend the list in the register to the list we're building
- F # Get index of input in the list
- › # Increment
- 💎
- ```
- Created with the help of [Luminespire](https://vyxal.github.io/Luminespire).
#1: Initial revision
# [Vyxal 3](https://github.com/Vyxal/Vyxal/tree/version-3/), 93 bytes
```
"◌Ṫ£ZN≊◌∪0⑤①_¿0∑wæ↻∥”⌈:"⑵3oẄ↻∑Ṭ▦]ƶÞ⇩Πf%Ww%⎋”⌈:£X'-¨j7ʁ9×↜⎀"W③j?boδyjrKϾ⑷Dᑂ0⎄↯⇄℈t⎘ ★µ”⌈$J¥$JF›
```
[Vyxal It Online!](https://vyxal.github.io/latest.html#H4sIAAAAAAAAA6tWSssvyk0sUbIy1lHKSE1MSS1SslJS0lFKzk9JBbJilB5N73m4c9WhxVF-jzq7gJxHHasMHk1c8mjigvhD-w0edUwsP7zsUdvuRx1LHzXMfdTTYQXUMnGrcf7DXS1g4YkPd655NG1Z7LFth-c9al95bkGaani56qO-bqjyQ4sj1HUPrcgyP9VoeXj6o7Y5j_oaYpTCH01clGWflH9uS2VWkff5fY8mbnd5OLHJ4FEf0NT1j9pbHrV0lDzqm6HwaEbroa0Qo1S8Di1V8XJ71LAL6P60_PwSmF_SchLTi5WsomN1lDLzCkpLQOxoJfei_NICBUMlnWilvMy81JJKpdhYoIqy1KLizPw8oE5jPUNDPQOlWgCG_IXhJAEAAA)
Naive implementation.
```
"◌Ṫ£ZN≊◌∪0⑤①_¿0∑wæ↻∥”⌈:"⑵3oẄ↻∑Ṭ▦]ƶÞ⇩Πf%Ww%⎋”⌈:£X'-¨j7ʁ9×↜⎀"W③j?boδyjrKϾ⑷Dᑂ0⎄↯⇄℈t⎘ ★µ”⌈$J¥$JF›
"◌Ṫ£ZN≊◌∪0⑤①_¿0∑wæ↻∥” # Push the string "twenty thirty forty fifty sixty seventy eighty ninety"
⌈ # Split the string on spaces
: # Duplicate
"⑵3oẄ↻∑Ṭ▦]ƶÞ⇩Πf%Ww%⎋” # Push the string "one two three four five six seven eight nine"
⌈ # Split the string on spaces
:£ # Put a copy in the register
X # Cartesian product
'-¨j # Join each element in the resulting list by "-"
# We now have the list ["twenty-one", "twenty-two", ..., "thirty-one", "thirty-two", ..., "ninety-nine"]
↜⎀ # Insert the elements of the first list into the result using the following indices:
7ʁ # Range [0, 7]
9× # Multiply by 9
# We now have the list ["twenty", "twenty-one", ..., "thirty", "thirty-one", ..., "ninety-nine"]
"W③j?boδyjrKϾ⑷Dᑂ0⎄↯⇄℈t⎘ ★µ” # Push the string "ten eleven twelve thirteen fourteen fifteen sixteen seventeen eighteen nineteen"
⌈ # Split the string on spaces
$J # Prepend that to the list we're building
¥$J # Prepend the list in the register to the list we're building
F # Get index of input in the list
› # Increment
💎
```
Created with the help of [Luminespire](https://vyxal.github.io/Luminespire).
