Skip to content

Instantly share code, notes, and snippets.

@andrewharmellaw
Created December 3, 2015 11:05
Show Gist options
  • Save andrewharmellaw/5ed778067e2190969b9a to your computer and use it in GitHub Desktop.
Save andrewharmellaw/5ed778067e2190969b9a to your computer and use it in GitHub Desktop.
foldLeft(List(10.0,23.0,96.0), 1.0) (_ * _)
foldLeft(10.0 :: 23.0 :: 96.0 :: Nil, 1.0) (_ * _)
foldLeft(23.0 :: 96.0 :: Nil, (1.0 * 10.0)) (_ * _)
foldLeft(96.0 :: Nil, ((1.0 * 10.0) * 23.0)) (_ * _)
foldLeft(Nil, (((1.0 * 10.0) * 23.0) * 96.0)) (_ * _)
(((1.0 * 10.0) * 23.0) * 96.0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment