Fridge icon indicating copy to clipboard operation
Fridge copied to clipboard

Add `adjust` method

Open vexy opened this issue 3 years ago • 0 comments

Add a public method that allows changing field value of an already frozen struct without the need for unfreezing.

New value should be present at next unfreeze attempt.

eg:

try Fridge.adjust(FrozenStruct.Self, field: \.field1, value: 10)

vexy avatar May 18 '22 17:05 vexy