-
Something for the weekend?
A challenge for the weekend? Something from the Vector D?j?
A single-expression function to replace multiple embedded spaces in a string with single spaces. E.g.
q)rmeb “the quick brown fox” “the quick brown fox”
If you find yourself writing a loop, you’re on the wrong track. This is not a golfing challenge, but my best lambda is 26 chars.
Extra kudos Find the fastest expression on a million-char string.
Even more kudos To avoid typing it so often, you have a general filter function
f:{y where x@y}
. Definermeb
as a projection off
, using a composition as the left argument.
Log in to reply.