libgolf is a library of common utilities for writing golfing language builtins. It currently includes:
List
, a well-featured lazy list classCharacter
, a thin wrapper for representing Unicode charactersString
, a wrapper around aList
ofCharacter
s that behaves more like Python's built-instr
typevectorise
, a higher-order function (or decorator) for automatically mapping a function over its arguments
libgolf aims to semi-standardise these features across golfing languages by allowing them to be shared, and provide high-quality code with unit tests to ensure robustness of their implementations.