[{"name":"Inflate","comment":" Decompress data compressed with a deflate algorithm\n\n@docs inflate\n\n","unions":[],"aliases":[],"values":[{"name":"inflate","comment":" Inflate a sequence of bytes\n\n    import Bytes exposing (Bytes)\n    import Bytes.Encode as Encode\n    import Inflate\n\n    deyrfé : String\n    deyrfé =\n        \"Deyr fé, deyja frændr\"\n\n    -- string compressed with zlib\n    compressed : Bytes.Bytes\n    compressed =\n        [ 115, 73, 173, 44, 82, 72, 59, 188, 82, 71, 33, 37, 181, 50, 43, 81, 33, 173, 232, 240, 178, 188, 148, 34, 46, 0 ]\n            |> List.map Encode.unsignedInt8\n            |> Encode.sequence\n            |> Encode.encode\n\n    decompressedLength : Int\n    decompressedLength =\n        -- + 2 because string uses 2 non-ascii characters\n        -- (they take an extra byte)\n        String.length deyrfé + 2\n\n    decode : Bytes -> Maybe String\n    decode =\n        Decode.decode (Decode.string decompressedLength)\n\n    decompressed : String\n    decompressed =\n        Inflate.inflate compressed\n            |> Maybe.andThen decode\n            |> Maybe.withDefault \"\"\n\n    --> \"Deyr fé, deyja frændr\"\n\n","type":"Bytes.Bytes -> Maybe.Maybe Bytes.Bytes"}],"binops":[]}]