Skip to content

Commit

Permalink
Added list_lower method
Browse files Browse the repository at this point in the history
  • Loading branch information
DinisCruz committed Sep 13, 2023
1 parent b4670d4 commit 37f1046
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions osbot_utils/utils/Lists.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ def not_empty(list):
def empty(list):
return not Lists.not_empty(list)

@staticmethod
def lower(input_list):
return [item.lower() for item in input_list]

@staticmethod
def tuple_to_list(target:tuple):
if type(target) is tuple:
Expand Down Expand Up @@ -67,6 +71,7 @@ def list_dict_insert_field(target_list, new_key, insert_at, new_value=None):
list_del = Lists.delete
list_empty = Lists.empty
list_first = Lists.first
list_lower = Lists.lower
list_not_empty = Lists.not_empty
list_to_tuple = Lists.list_to_tuple

Expand Down

0 comments on commit 37f1046

Please sign in to comment.