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
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.