Follow

in
(clojure.string/replace "Hello World Johnny" #" " "")
---
RT @swapnakpanda
🚀 Problem Solving

Given a string input, you need to extract only non-whitespace characters and returns the string.

Example:

Input → "Hello World Johny"
Output → "HelloWorldJohny"

Can you write just a one-liner code for it?

Hint in JavaScript: You can use split, join etc.
twitter.com/swapnakpanda/statu

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.