Minor api change and more gopher.slo updates

master
sloum 2 years ago
parent 4ba9ee767d
commit 4ff9f4e6ce

@ -257,7 +257,7 @@ Implemented:
<li><code>(substring [string] [number] [number])</code>: <code>string</code></li>
<li><code>(string-append [value...])</code>: <code>string</code></li>
<li><code>(string-format [format: string] [value...])</code>: <code>string</code> (replaces `{}`'s in string with successive values)</li>
<li><code>(string->number [string] [[base: number]])</code>: <code>number</code> If a non-decimal base is supplied, the input string will be parsed as an integer and any flaoting point value will be floored</li>
<li><code>(string->number [string] [[base: number]])</code>: <code>number/#f</code> If a non-decimal base is supplied, the input string will be parsed as an integer and any flaoting point value will be floored. A valid base passed with a string that does not parse to a number will return <code>#f</code></li>
<li><code>(string->list [string] [[value]])</code>: <code>list</code> (splits the first string at each instance of value, cast as a string)</li>
<li><code>(string->md5 [string])</code>: <code>string</code></li>
<li><code>(string->sha256 [string])</code>: <code>string</code></li>

@ -1273,7 +1273,7 @@ var stdLibrary = vars{
}
i, err := strconv.ParseInt(s, base, 64)
if err != nil {
return exception("'string->number' was unable to parse the given string into a valid number")
return false
}
return number(i)
},
@ -2338,8 +2338,4 @@ Net Based:
System Based:
[ ] eval
- MD5
- SHA1
- rand
*/

Loading…
Cancel
Save