Name

and — Logical and

Synopsis

and number [number] [number] [...]

Description

The and command takes one or more arguments, and performs a binary and on them, in sequence.

Example

hecl> and 1 0
0
hecl> and 1 1
1
hecl> and 1
1
hecl> and 2 4
0
hecl> and 5 1
1
hecl> and 5 4
4
hecl> and 1 2 4 8
0