Determine if a string is numeric: Difference between revisions

Content deleted Content added
Hout (talk | contribs)
Line 2,711:
END FUNCTION</lang><pre>123 1
1ab 0</pre>
 
=={{header|Rust}}==
<lang rust>// This function is not limited to just numeric types but rather anything that implements the FromStr trait.
fn parsable<T: FromStr>(s: &str) -> bool {
s.parse::<T>().is_ok()
}</lang>
 
=={{header|Scala}}==