Skip to content

Commit

Permalink
add mol mut docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyumih committed Jan 11, 2024
1 parent 12c5c83 commit a4a096c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/docs/demo.meta.tree
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ include \/mol/list/demo
include \/mol/list/demo/table
include \/mol/list/demo/tree
include \/mol/map/yandex/demo
include \/mol/mutable/demo
include \/hyoo/marked/demo
include \/hyoo/harp/demo
- include \/mol/message/demo
Expand Down
14 changes: 14 additions & 0 deletions mutable/demo/demo.view.tree
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
$mol_mutable_demo $mol_example_code
code? \
\const person = [777, {id: '10', name: 'Jhon'}, false]
\
\const mut = $mol_mutable(person)
\mut[1].id(v => '42')
\mut().push('Online')
\mut[1].name(() => 'Dave')
\mut[2]((v) => !v)
\
\const next = mut()
aspects /
\Muttable
\Array

0 comments on commit a4a096c

Please sign in to comment.