Crandore Hub

tinylens

Minimal Implementation of Functional Lenses

Provides utilities to create and use lenses to simplify data manipulation. Lenses are composable getter/setter pairs that provide a functional approach to manipulating deeply nested data structures, e.g., elements within list columns in data frames. The implementation is based on the earlier 'lenses' R package <https://github.com/cfhammill/lenses>, which was inspired by the Haskell 'lens' package by Kmett (2012) <https://github.com/ekmett/lens>, one of the most widely referenced implementations of lenses. For additional background and history on the theory of lenses, see the 'lens' package wiki: <https://github.com/ekmett/lens/wiki/History-of-Lenses>.

Versions across snapshots

VersionRepositoryFileSize
0.1.0 rolling linux/jammy R-4.5 tinylens_0.1.0.tar.gz 71.6 KiB
0.1.0 rolling linux/noble R-4.5 tinylens_0.1.0.tar.gz 71.6 KiB
0.1.0 rolling source/ R- tinylens_0.1.0.tar.gz 9.8 KiB
0.1.0 latest linux/jammy R-4.5 tinylens_0.1.0.tar.gz 71.6 KiB
0.1.0 latest linux/noble R-4.5 tinylens_0.1.0.tar.gz 71.6 KiB
0.1.0 latest source/ R- tinylens_0.1.0.tar.gz 9.8 KiB
0.1.0 2026-04-26 source/ R- tinylens_0.1.0.tar.gz 9.8 KiB
0.1.0 2026-04-23 source/ R- tinylens_0.1.0.tar.gz 9.8 KiB
0.1.0 2026-04-09 windows/windows R-4.5 tinylens_0.1.0.zip 75.4 KiB
0.1.0 2025-04-20 source/ R- tinylens_0.1.0.tar.gz 9.8 KiB

Dependencies (latest)

Imports

Suggests