aboutsummaryrefslogtreecommitdiff
path: root/mendeleev.py
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2022-12-13 21:29:30 +0200
committerIgor Pashev <pashev.igor@gmail.com>2022-12-13 21:31:37 +0200
commit7031a9ea16438ec8546fc043999dfbc8410d0fee (patch)
treedcacd809130a4536da31ee582c71856824cacf40 /mendeleev.py
parent1ac772400a6a3aea8d006ac46337440600017e4b (diff)
downloadmendeleev-7031a9ea16438ec8546fc043999dfbc8410d0fee.tar.gz
Rename divide to split
Diffstat (limited to 'mendeleev.py')
-rw-r--r--mendeleev.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mendeleev.py b/mendeleev.py
index 21bc600..11776f6 100644
--- a/mendeleev.py
+++ b/mendeleev.py
@@ -49,7 +49,7 @@ def search(start, length, shift, char):
return (start, length)
-def divide(tail):
+def split(tail):
result = []
start = 0
@@ -71,7 +71,7 @@ def divide(tail):
def advance(els, tail):
- return [(els + [e], t) for (e, t) in divide(tail)]
+ return [(els + [e], t) for (e, t) in split(tail)]
def explode(word):