# The Infix Operator

This is a good time to introduce the **infix operator** that helps us make code a bit more readable. Normally, we apply a function by writing `<FUNCTION> <ARGUMENT1> <ARGUMENT2>`, but we could also write it using the infix operator as ``<ARGUMENT1> `<FUNCTION>` <ARGUMENT2>``. This way, we make the code more readable – for example, in the case of`res = mod sum 2`, we can instead write:

```haskell
res = sum `mod` 2 -- using the infix operator ``
```

Which then reads as "`res` is equal to `sum modulo 2`". Note that the infix operator can be used this way for **functions that take in two arguments**. For functions with more than two arguments, we would need to add parentheses to explicitly create expressions (which return another function – [currying](/types-in-haskell/function-types/curried-functions.md)):

```haskell
ghci> multiply x y z = x * y * z

ghci> (1 `multiply` 2) 3
6
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://haskell.hpmeducation.com/defining-functions-working-with-functions/the-infix-operator.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
