Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am aquafemi on github.
  • I am keppa (https://keybase.io/keppa) on keybase.
  • I have a public key ASALF3KfEyxgLNp494hHTGzfSETBnhfa88K2g-2FypdnmAo

To claim this, I am signing this object:

@aquafemi
aquafemi / library.sol
Created July 30, 2018 21:22
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.25-nightly.2018.7.23+commit.79ddcc76.js&optimize=true&gist=
pragma solidity ^0.4.0;
library IntExtended {
function increment(uint _self) public pure returns (uint) {
return _self + 1;
}
function decrement(uint _self) public pure returns (uint) {
return _self - 1;