Skip to content

Commit

Permalink
øṀ
Browse files Browse the repository at this point in the history
  • Loading branch information
chunkybanana committed Nov 17, 2021
1 parent 1c31b30 commit 690e383
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions vyxal/elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -832,6 +832,15 @@ def flip_brackets_vertical_palindromise(lhs, ctx):
result[i] += invert_brackets(result[i][:-1][::-1])
return "\n".join(result)

def flip_brackets_vertical_mirror(lhs, ctx):
"""Element øṀ
(str) -> lhs vertically palindromised without duplicating the center, with brackets flipped.
"""
result = lhs.split("\n")
for i in range(len(result)):
result[i] += invert_brackets(result[i][::-1])
return "\n".join(result)


def function_call(lhs, ctx):
"""Element †
Expand Down Expand Up @@ -3910,6 +3919,7 @@ def zfiller(lhs, rhs, ctx):
"ø↲": process_element(custom_pad_left, 3),
"ø↳": process_element(custom_pad_right, 3),
"øM": process_element(flip_brackets_vertical_palindromise, 1),
"øṀ": process_element(flip_brackets_vertical_mirror, 1),
"øW": process_element(group_on_words, 1),
"øP": process_element(pluralise_count, 2),
"øp": process_element(starts_with, 2),
Expand Down

0 comments on commit 690e383

Please sign in to comment.