Old lady swallowed a fly: Difference between revisions

Replaced "import zlib" with "import zip/zlib"; changed the call to uncompress.
(Add ARM Assembly)
(Replaced "import zlib" with "import zip/zlib"; changed the call to uncompress.)
Line 2,613:
=={{header|Nim}}==
{{trans|Python}}
{{libheader|nim-lang/zip}}
<lang nim>import zip/zlib, base64
 
const b64 = """
Line 2,624 ⟶ 2,625:
zJvGew/jnZPzclA08yAkikegDTTUMfzwDXBcwoE="""
 
echo b64.decode.uncompress length()</lang>
proc uncompress*(source: string, destLen: var int): string =
result = newString(destLen)
discard uncompress(result.cstring, addr destLen, source.cstring, source.len)
 
var length = 10_000
echo b64.decode.uncompress length</lang>
 
=={{header|OCaml}}==
Anonymous user