ZVON > References > Haskell reference
| Indexes | Syntax | >> Prelude << | Ratio | Complex | Numeric | Ix | Array | List | Maybe | Char | Monad | IO | Directory | System | Time | Locale | CPUTime | Random

Module: Prelude
Function: subtract
Type: Num a => a -> a -> a
Description: subtracts the first argument from the second one
Related: (-)
Keywords: subtraction

Example 1

Input: subtract 3 5

Output: 2

Example 2

Input: subtract 5 3

Output: -2

Example 3

Input: subtract 5 5

Output: 0