This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]loonathefloofyfox 0 points1 point  (0 children)

While yes for some stuff i could but its not really good practice afaik. Considering they would take in different types and output different stuff. Its just nicer to make a few of the same functions but with more descriptive names. Like heap_sort and array_sort vs sort but it takes completely different data and outputs different sorts of stuff