4 ms·
my first python thought was s = ' hello world \n' s = ''.join(s.split()) again probably not fast, but simple
by niccl 10y ago
my first python thought was
s = ' hello world \n'
s = ''.join(s.split())
again probably not fast, but simple
- justinhj 10y agoScala: val nospaces = "a string with spaces" filter { _ != ' ' }