Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

Lazy

Guides

  • Guide
  • MainGuide

Symbols

  • LazyDirectoryTree
  • LazyExpression
  • LazyLength
  • LazyList
  • Lazy
  • LazySplits
  • LazyTraverse
  • LazyTreeEdges
  • LazyTree
  • LazyValueArray
  • LazyValue
  • MultiwayNest
Wolfram`Lazy`
LazySplits
​
LazySplits[list,n]
return a lazy list of all possible splits of a
list
into
n
parts.
​
Examples  
(1)
Basic Examples  
(1)
In[1]:=
LazySplits
[LazyRange[5]]//Normal
Out[1]=
{{{},{1,2,3,4,5}},{{1},{2,3,4,5}},{{1,2},{3,4,5}},{{1,2,3},{4,5}},{{1,2,3,4},{5}},{{1,2,3,4,5},{}}}
In[2]:=
LazySplits
[LazyRange[5],3]//Normal
Out[2]=
{{{},{},{1,2,3,4,5}},{{},{1},{2,3,4,5}},{{1},{},{2,3,4,5}},{{},{1,2},{3,4,5}},{{1},{2},{3,4,5}},{{1,2},{},{3,4,5}},{{},{1,2,3},{4,5}},{{1},{2,3},{4,5}},{{1,2},{3},{4,5}},{{1,2,3},{},{4,5}},{{},{1,2,3,4},{5}},{{1},{2,3,4},{5}},{{1,2},{3,4},{5}},{{1,2,3},{4},{5}},{{1,2,3,4},{},{5}},{{},{1,2,3,4,5},{}},{{1},{2,3,4,5},{}},{{1,2},{3,4,5},{}},{{1,2,3},{4,5},{}},{{1,2,3,4},{5},{}},{{1,2,3,4,5},{},{}}}
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com