From 3f717ce2c42e3b614aa5bc8fa16053d12fb401d9 Mon Sep 17 00:00:00 2001 From: mcDandy Date: Thu, 10 Sep 2026 17:08:07 +0200 Subject: [PATCH] fix missing and correct in readme --- README.md | 9 +++++++++ requirements.txt | 1 + 2 files changed, 10 insertions(+) diff --git a/README.md b/README.md index 14a2887..7e0552d 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,11 @@ You can also get the node from comfy manager under the name of More math. - supports multidimensional tensors and nested lists, - scalar values and 1-element tensors/lists fill the selected slice, - leading singleton dimensions are squeezed when needed to match target rank. +- python-like slicing + - `a[start:end]` or `a[start:end:step]` for 1D slices, + - `a[start1:end1, start2:end2, ...]` for N-D slices (step can also be specified), + - negative indices count from the end of the dimension. +- json-like dictionary literals `{key1: value1, key2: value2, ...}` for structured data. Keys can be strings or numbers or variables (variable will be evaluated to its value), values can be any expression. Indexing using []. - Control flow: - `if/else` - `while` @@ -376,6 +381,10 @@ ___ - `stack_clear(id)`: clear stack slot. - `stack_has(id)`: check whether slot exists and is non-empty. +### 12) Dictionary + - `add_key(dict, key, value)` - add a key-value pair to a dictionary. + - `remove_key(dict, key)` / `rm_key` - remove a key-value pair from a dictionary. + ## Variables - **Common variables (except FLOAT)**: diff --git a/requirements.txt b/requirements.txt index c615a12..69c7a25 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ antlr4-python3-runtime torch +pillow \ No newline at end of file