Skip to content

Commit

Permalink
Merge pull request #27 from DestyNova/main
Browse files Browse the repository at this point in the history
07-more-adverbs.md: flip args of binsearch (search array goes on left)
  • Loading branch information
razetime authored Feb 18, 2024
2 parents 7d66552 + 1ac642a commit f527f74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 07-more-adverbs.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ Now that you have seen window, we can look at some more neat adverbs:
- *base decode* (`int(x) / int(y)`) is the inverse of base encode.
- *split* (`string(x) \ string(y)`) splits `y` on string `x`.
- *join* (`string(x) / array(y)`) joins array `y` on string `x`.
- *binary search* (`any(x) ' array(y)`) does a binary search for each element of `x` in `y`. If you do not know what a binary search is, I recommend reading [this article](https://www.khanacademy.org/computing/computer-science/algorithms/binary-search/a/binary-search).
- *binary search* (`array(x) ' any(y)`) does a binary search for each element of `x` in `y`. If you do not know what a binary search is, I recommend reading [this article](https://www.khanacademy.org/computing/computer-science/algorithms/binary-search/a/binary-search).


These *can* be implemented using the help of K's primitives (and K's philosophy does support that), but having them as symbols is quite convenient, since they are very commonly used.
Expand Down

0 comments on commit f527f74

Please sign in to comment.