Skip to main content
replaced http://mathematica.stackexchange.com/ with https://mathematica.stackexchange.com/
Source Link

R.M's methodR.M's method with suitable modification:

Flatten @ Partition[list, 3, 5, 1, {}]
{3, 5, 5, 5, 1, 0, 4}

Or for recent versions of Mathematica using UpTo

Flatten @ Partition[list, UpTo[3], 5]

R.M's method with suitable modification:

Flatten @ Partition[list, 3, 5, 1, {}]
{3, 5, 5, 5, 1, 0, 4}

Or for recent versions of Mathematica using UpTo

Flatten @ Partition[list, UpTo[3], 5]

R.M's method with suitable modification:

Flatten @ Partition[list, 3, 5, 1, {}]
{3, 5, 5, 5, 1, 0, 4}

Or for recent versions of Mathematica using UpTo

Flatten @ Partition[list, UpTo[3], 5]
added 156 characters in body
Source Link
Mr.Wizard
  • 273.1k
  • 34
  • 595
  • 1.4k

R.M's method with suitable modification:

Flatten @ Partition[list, 3, 5, 1, {}]
{3, 5, 5, 5, 1, 0, 4}

Or for recent versions of Mathematica using UpTo

Flatten @ Partition[list, UpTo[3], 5]

R.M's method with suitable modification:

Flatten @ Partition[list, 3, 5, 1, {}]
{3, 5, 5, 5, 1, 0, 4}

R.M's method with suitable modification:

Flatten @ Partition[list, 3, 5, 1, {}]
{3, 5, 5, 5, 1, 0, 4}

Or for recent versions of Mathematica using UpTo

Flatten @ Partition[list, UpTo[3], 5]
Source Link
Mr.Wizard
  • 273.1k
  • 34
  • 595
  • 1.4k

R.M's method with suitable modification:

Flatten @ Partition[list, 3, 5, 1, {}]
{3, 5, 5, 5, 1, 0, 4}
Post Made Community Wiki by Mr.Wizard