Creates a new sequential seq, optionally with a task environment.
The seq can be changed to parallel mode by Seq.parallel.
spliterator |
a spliterator used by the seq |
env |
a task environment. If not specified, TaskEnv.get_common_task_env is used. |