Hacker GitHub

← All repos

smithzvk/modf

View on GitHub ↗ ★ 72 Common Lisp

A setf like macro for functional programming

3 mentions on Hacker News by 2 people: 0 stories, 3 comments · first 2020-02-25 · latest 2025-10-30

Mentions per year 3 mentions · busiest year 2020 (1)
20082026
  1. Certain aspects of this me of the modf macro for Common Lisp: https://github.com/smithzvk/modf You use place syntax like what is used with incf or setf, denoting part of some complex object. But the modification is made to the…
    comment by kazinator · 2025-10-30 · in Lenses in Julia
  2. There is a macro like this for Common Lisp: modf . https://github.com/smithzvk/modf With modf , you use the existing place syntax to refer to part of an object. It looks like you're mutating that object, but in fact it will return a clone…
    comment by kazinator · 2023-12-21 · in Discovering copy-on-write in R
  3. https://github.com/smithzvk/modf like setf, but doesn't mutate the data (didn't try).