Post History
Dyalog APL, 23 bytes {⍵+(⌈/+⌊/)10⊥⍣¯1⊢⍵}⍣⎕⊢1...
#3: Post edited
- # Dyalog APL, 23 bytes
- ```apl
- {⍵+(⌈/+⌊/)10⊥⍣¯1⊢⍵}⍣⎕⊢1⎕
- ```
- Takes an input *n* and outputs the 0-indexed *n*th item of the sequence.
- ```
- {⍵+(⌈/+⌊/)10⊥⍣¯1⊢⍵}⍣⎕⊢⎕
⊢⎕ ⍝ Starting from 1,- ⍣⎕ ⍝ repeat <input> times
- ⍵+ ⍝ the number plus
- (⌈/+⌊/) ⍝ the minimum plus the maximum of
- 10⊥⍣¯1 ⍝ the base-10 representation
- ⊢⍵ ⍝ of the number.
- 💎
- ```
- Created with the help of [Luminespire](https://vyxal.github.io/Luminespire).
- # Dyalog APL, 23 bytes
- ```apl
- {⍵+(⌈/+⌊/)10⊥⍣¯1⊢⍵}⍣⎕⊢1⎕
- ```
- Takes an input *n* and outputs the 0-indexed *n*th item of the sequence.
- ```
- {⍵+(⌈/+⌊/)10⊥⍣¯1⊢⍵}⍣⎕⊢⎕
- ⊢⎕ ⍝ Starting from <input>,
- ⍣⎕ ⍝ repeat <input> times
- ⍵+ ⍝ the number plus
- (⌈/+⌊/) ⍝ the minimum plus the maximum of
- 10⊥⍣¯1 ⍝ the base-10 representation
- ⊢⍵ ⍝ of the number.
- 💎
- ```
- Created with the help of [Luminespire](https://vyxal.github.io/Luminespire).
#2: Post edited
- # Dyalog APL, 23 bytes
- ```apl
{⍵+(⌈/+⌊/)10⊥⍣¯1⊢⍵}⍣⎕⊢1- ```
- Takes an input *n* and outputs the 0-indexed *n*th item of the sequence.
- ```
{⍵+(⌈/+⌊/)10⊥⍣¯1⊢⍵}⍣⎕⊢1⊢1 ⍝ Starting from 1,- ⍣⎕ ⍝ repeat <input> times
- ⍵+ ⍝ the number plus
- (⌈/+⌊/) ⍝ the minimum plus the maximum of
- 10⊥⍣¯1 ⍝ the base-10 representation
- ⊢⍵ ⍝ of the number.
- 💎
- ```
- Created with the help of [Luminespire](https://vyxal.github.io/Luminespire).
- # Dyalog APL, 23 bytes
- ```apl
- {⍵+(⌈/+⌊/)10⊥⍣¯1⊢⍵}⍣⎕⊢1⎕
- ```
- Takes an input *n* and outputs the 0-indexed *n*th item of the sequence.
- ```
- {⍵+(⌈/+⌊/)10⊥⍣¯1⊢⍵}⍣⎕⊢⎕
- ⊢⎕ ⍝ Starting from 1,
- ⍣⎕ ⍝ repeat <input> times
- ⍵+ ⍝ the number plus
- (⌈/+⌊/) ⍝ the minimum plus the maximum of
- 10⊥⍣¯1 ⍝ the base-10 representation
- ⊢⍵ ⍝ of the number.
- 💎
- ```
- Created with the help of [Luminespire](https://vyxal.github.io/Luminespire).
#1: Initial revision
# Dyalog APL, 23 bytes
```apl
{⍵+(⌈/+⌊/)10⊥⍣¯1⊢⍵}⍣⎕⊢1
```
Takes an input *n* and outputs the 0-indexed *n*th item of the sequence.
```
{⍵+(⌈/+⌊/)10⊥⍣¯1⊢⍵}⍣⎕⊢1
⊢1 ⍝ Starting from 1,
⍣⎕ ⍝ repeat <input> times
⍵+ ⍝ the number plus
(⌈/+⌊/) ⍝ the minimum plus the maximum of
10⊥⍣¯1 ⍝ the base-10 representation
⊢⍵ ⍝ of the number.
💎
```
Created with the help of [Luminespire](https://vyxal.github.io/Luminespire).
