Common utilities for implementing golfing language builtin libraries
ARTISTIC-2.0 License
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 a List
of Character
s that behaves more like Python's built-in str
vectorise
, a higher-order function (or decorator) for automatically mapping a function over its argumentslibgolf 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.