Post History
Brainfuck, 10 Bytes ,[>,]<[.<] Requires EOF to be 0. Try it online! ,[>,]<[.<] , # Read character [ ] # loop as long as current cell is not 0 (EOF) >, ...
Answer
#2: Post edited
- ## Brainfuck, 10 Bytes
`,[>,]<[.<]`Requires EOF to be 0.
- ## Brainfuck, 10 Bytes
- ```,[>,]<[.<]```
- Requires EOF to be 0.
- [Try it online!](https://tio.run/##SypKzMxLK03O/v9fJ9pOJ9YmWs8m9v//tMTilLT0jKzsHAA "brainfuck – Try It Online")
- ```
- ,[>,]<[.<]
- , # Read character
- [ ] # loop as long as current cell is not 0 (EOF)
- >, # read and fill the tape to the right with the read characters
- < # go back to the last valid character, i.e. one before EOF
- [ ] # loop till current cell is 0 (i.e. cell pointer is before the first read character
- .< # output character and move left
- ```