# Creating a function with utf

**URL:** <https://discourse.julialang.org/t/creating-a-function-with-utf/102628>\
**Category:** New to Julia\
**Created:** [August 9, 2023, 10:05am UTC](https://discourse.julialang.org/t/creating-a-function-with-utf/102628 "2023-08-09T10:05:28Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Sevi](https://avatars.discourse-cdn.com/v4/letter/s/c67d28/32.png) [@Sevi](https://discourse.julialang.org/u/Sevi)\
**Post date:** [August 9, 2023, 4:35pm UTC](https://discourse.julialang.org/t/creating-a-function-with-utf/102628/4 "2023-08-09T16:35:35Z")

</div>

I stand corrected, seems like you found the solution (I’ll link it here just for future reference):

> [@Using superscript ⁻¹ as a postfix operator for inv?](https://discourse.julialang.org/t/using-superscript-as-a-postfix-operator-for-inv/40413/12):
>
> You can actually do this with no language changes if you’re willing to write (A)⁻¹ rather than A⁻¹. Here’s an example at the REPL: julia\> begin struct Inverter end const ⁻¹ = Inverter() Base.:(\*)(A, ::Inverter) = inv(A) end julia\> A = rand(3,3) 3×3 Array{Float64,2}: 0.51549 0.0616877 0.530502 0.783366 0.0598045 0.697045 0.381722 0.833891 0.632847 julia\> (A)⁻¹ 3×3 Array{Float64,2}: -13.5368 10.0475 0.280811 -5.72129 3.08199 1.401…

A pretty neat example of what weird but cool things are possible 🙂

---

_[View the full topic](https://discourse.julialang.org/t/creating-a-function-with-utf/102628)._
