Share your repls and programming experiences

← Back to all posts
Binary Insert
W4LRUS (35)

This function inserts a value into a sorted table via a binary search algorithm. It is faster than doing a regular table.insert(table, value) followed by a table.sort(table [, comp])