Rice coding: Difference between revisions
Content added Content deleted
m (→{{header|Phix}}: added ..q+k comment) |
m (→{{header|Phix}}: hardly production ready, anyway) |
||
Line 142: | Line 142: | ||
<!--</syntaxhighlight>--> |
<!--</syntaxhighlight>--> |
||
{{out}} |
{{out}} |
||
Same as Julia. Note that rice_decode on an input stream should probably get r from a[q+1..q+k] and strip q+k bits off the head of the stream. |
Same as Julia. Note that rice_decode on an input stream should probably get r from a[q+1..q+k] and strip q+k bits off the head of the stream.<br> |
||
Then again the above is using strings for demonstration purposes, so that code is hardly production-ready. |
|||
=={{header|raku}}== |
=={{header|raku}}== |