-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
87 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
""" | ||
flx: Fuzzy matching... a la Sublime Text. | ||
""" | ||
|
||
__shortname__ = "flx" | ||
__longname__ = "flx: Fuzzy matching... a la Sublime Text" | ||
__version__ = "0.1.0" | ||
__shortname__ = "flx" | ||
__longname__ = "flx: Fuzzy matching... a la Sublime Text" | ||
__version__ = "0.1.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
def dict_set(dict, key, val): | ||
if key is None: | ||
return | ||
|
||
dict[key] = val | ||
|
||
return dict | ||
|
||
def dict_get(dict, key): | ||
if key is None: | ||
return None | ||
|
||
if not key in dict.keys(): | ||
return None | ||
|
||
return dict[key] | ||
|
||
def dict_insert(dict, key, val): | ||
if not key in dict.keys(): | ||
dict[key] = [] | ||
|
||
dict[key].insert(0, val) | ||
|
||
return dict |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters