You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Binary search on an array of cell-sized items. "find" and "insert" could be the basis of an insertion sort or an array of unique items kept sorted incrementally. Examples of the search routine are given with and without using locals.
create ar20 20 cells allot
ar20 value ar
0 value sz
defer [compare] ( item1 item2 -- <=> )
' - is [compare] \ default to numbers, but could be pointers