[phobos] [D-Programming-Language/phobos] 5cde6f: Add clamp function

GitHub via phobos phobos at puremagic.com
Thu Jul 17 10:25:33 PDT 2014


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/phobos
  Commit: 5cde6f5fd56e38b093a7acccca39e1fcfec65554
      https://github.com/D-Programming-Language/phobos/commit/5cde6f5fd56e38b093a7acccca39e1fcfec65554
  Author: Andreas Zwinkau <zwinkau at kit.edu>
  Date:   2014-07-17 (Thu, 17 Jul 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  Add clamp function

Request in issue 10039

http://d.puremagic.com/issues/show_bug.cgi?id=10039


  Commit: 136e8661b660ca4b9f7e3b2237216596a384f426
      https://github.com/D-Programming-Language/phobos/commit/136e8661b660ca4b9f7e3b2237216596a384f426
  Author: Dicebot <public at dicebot.lv>
  Date:   2014-07-17 (Thu, 17 Jul 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  Adjust clamp signature and tests

signed is now deduced over unsigned, added small documented unittest
instead of full block


  Commit: 8dc16d81097ce591e602b2597ba5eff24aa76966
      https://github.com/D-Programming-Language/phobos/commit/8dc16d81097ce591e602b2597ba5eff24aa76966
  Author: Dicebot <public at dicebot.lv>
  Date:   2014-07-17 (Thu, 17 Jul 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  Add in contract for clamp()

lower bound should not be larger than higher one


  Commit: fe230e674f0c6791e10258c73920274ffd4b9a16
      https://github.com/D-Programming-Language/phobos/commit/fe230e674f0c6791e10258c73920274ffd4b9a16
  Author: Dicebot <public at dicebot.lv>
  Date:   2014-07-17 (Thu, 17 Jul 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  Mention 'clamp' in the cheatsheet


  Commit: 78e5ebe29304d102f13920314a3f23c51b91f370
      https://github.com/D-Programming-Language/phobos/commit/78e5ebe29304d102f13920314a3f23c51b91f370
  Author: Dmitry Olshansky <dmitry.olsh at gmail.com>
  Date:   2014-07-17 (Thu, 17 Jul 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  Merge pull request #2327 from Dicebot/remake-1360

PR 1360 revived: Add clamp function


Compare: https://github.com/D-Programming-Language/phobos/compare/4f81791438d2...78e5ebe29304


More information about the phobos mailing list