more elegant

Mar 02, 2007 15:48

fun removeSpaces y = implode (foldr (fn (x, z) => if x = #" " then z else (x::z)) [] (explode( y )));
Previous post Next post
Up