Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add mol mut docs #655

Merged
merged 3 commits into from
Jan 11, 2024
Merged

add mol mut docs #655

merged 3 commits into from
Jan 11, 2024

Conversation

Lyumih
Copy link
Contributor

@Lyumih Lyumih commented Jan 11, 2024

No description provided.

@koplenov
Copy link
Member

может добавить комментарии что делает каждая строчка?

mut[1].name(() => 'Dave')
mut[2]((v) => !v)

не сразу понятно что делают:
(() => 'Dave')
((v) => !v)

\
\const mut = $mol_mutable(person)
\mut[1].id(v => '42')
\mut().push('Online')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 Не, так делать нельзя - можешь случайно изменить исходный объект.

@@ -0,0 +1,14 @@
$mol_mutable_demo $mol_example_code
code? \
\const person = [777, {id: '10', name: 'Jhon'}, false]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Странная персона в виде кортежа. Может что-то реалистичней? Вообще этот модуль больше для объектов полезен, чем для массивов.

@nin-jin nin-jin merged commit 16d6eb6 into hyoo-ru:master Jan 11, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants