This forum is closed. Thank you for your contributions.
that function is already available by default.
if you want to implement is some PL, tell me which lang it is.