[phobos] [dlang/phobos] 1777e4: Fibonacci should only be calculated for values big...

GitHub via phobos phobos at puremagic.com
Sat May 7 23:12:13 PDT 2016


  Branch: refs/heads/master
  Home:   https://github.com/dlang/phobos
  Commit: 1777e45fb2a070d53b1cafa76ced66020eee0ed0
      https://github.com/dlang/phobos/commit/1777e45fb2a070d53b1cafa76ced66020eee0ed0
  Author: Steve Biedermann <hardliner66 at users.noreply.github.com>
  Date:   2016-04-08 (Fri, 08 Apr 2016)

  Changed paths:
    M std/functional.d

  Log Message:
  -----------
  Fibonacci should only be calculated for values bigger than 2. In this case, ther should be a less or equal comparison, instead of less than.


  Commit: 045e41bde80c500d009ad558f5c503675d398d43
      https://github.com/dlang/phobos/commit/045e41bde80c500d009ad558f5c503675d398d43
  Author: Steve Biedermann <hardliner66 at users.noreply.github.com>
  Date:   2016-04-11 (Mon, 11 Apr 2016)

  Changed paths:
    M std/functional.d

  Log Message:
  -----------
  Fixed Fibonacci example

The check for n == 0 was missing.


  Commit: 72dd35bf37fa14ebfebae595844602018b0a5937
      https://github.com/dlang/phobos/commit/72dd35bf37fa14ebfebae595844602018b0a5937
  Author: Steve Biedermann <hardliner66 at users.noreply.github.com>
  Date:   2016-05-01 (Sun, 01 May 2016)

  Changed paths:
    M std/functional.d

  Log Message:
  -----------
  Use one liner as recommended by @lionello


  Commit: e280cb6c6227773342ecabe2c01ca16883386029
      https://github.com/dlang/phobos/commit/e280cb6c6227773342ecabe2c01ca16883386029
  Author: Dmitry Olshansky <dmitry.olsh at gmail.com>
  Date:   2016-05-08 (Sun, 08 May 2016)

  Changed paths:
    M std/functional.d

  Log Message:
  -----------
  Merge pull request #4171 from hardliner66/patch-1

Fibonacci should only be calculated for values bigger than 2.


Compare: https://github.com/dlang/phobos/compare/0117797e2cba...e280cb6c6227


More information about the phobos mailing list