Write-and-f-array: implementation and an application This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License.