Function getBit

Returns bit at position pos in integer b

bool getBit(T) (
  T b,
  uint pos
);

Example

assert(getBit(1, 0) == 1);