Nathan Reynolds

Results 43 comments of Nathan Reynolds

[Here](http://stackoverflow.com/questions/29236556/how-can-i-calculate-n-th-permutation-or-tell-the-lexicographic-order-of-a-given) is a pseudo algorithm which can calculate the permutation given the lexicographical index. In other words, this can be used to split the Spliterator in O(1) time since all...

A work around for this is... ``` StreamEx. of("Red", "Green", "Blue", "Black"). collect(Joining.with(", ").lastDelimiter(" or ")). replaceFirst("^(.+), (.*)$", "$1 or $2"); ``` The first group in the regular expression is...

@magicprinc You can't stop its execution. But, you can set a flag to tell it to quit. You can set a flag to invalidate any result it produces. You can...