Adaptation of C++'s std::search_n

collection

(Daryle Walker) #1

In the latest version of my searching Gist, I added versions of C++'s std::search_n in the "SearchN.swift" file.

I don't know if it's just the comments, but the file is a lot bigger than the descriptions on the C++ page. A lot of the Swift functions are short, but there's still a lot of core functions. (Just counted; around 9 core and 28 trivial functions.)