docs: update ramda example (#2510)

This commit is contained in:
Henpai Hsu 2024-04-26 16:07:15 +08:00 committed by GitHub
parent bdd104a97d
commit b66ccd5243
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -131,7 +131,7 @@ You can also use [Ramda](https://ramdajs.com/):
```ts ```ts
ramdaInc: () => ramdaInc: () =>
set(R.over(R.lensPath(["deep", "nested", "obj", "count"]), (c) => c + 1)), set(R.modifyPath(["deep", "nested", "obj", "count"], (c) => c + 1)),
``` ```
Both ramda and optics-ts also work with types. Both ramda and optics-ts also work with types.