| Bytes | Lang | Time | Link |
|---|---|---|---|
| 028 | Tcl | 170112T030412Z | sergiol |
| 022 | Haskell | 170112T024930Z | xnor |
| 004 | Pyth | 170112T025123Z | busukxua |
| 008 | Retina | 170112T025044Z | Digital |
| 007 | V | 170112T024938Z | DJMcMayh |
| 003 | Jelly | 170112T024816Z | lynn |
| 036 | Python | 170112T024704Z | orlp |
Haskell, 22 bytes
(((:" ")=<<)=<<).words
Laikoni saved 2 bytes with a nice use of words. Previous answer:
(=<<)(:" ").filter(>' ')
Pyth, 4 bytes
jdsc
Splitting on whitespace and then joining seems shorter than removing the spaces.
In pseudocode:
' ' d,Q = " ",input() # preinitialized variables
'jd ' d.join(
' s ' sum(
' cQ' Q.split() ))
Retina, 8
. $0
Whitespace is significant - there are single spaces at the end of the first and last lines.
Python, 36 bytes
lambda s:" ".join(s.replace(" ",""))