1
0
Fork 0

const binary function

main
Sebastian Steger 2025-11-07 18:17:56 +01:00
parent 918af522d6
commit 8da0378153
1 changed files with 4 additions and 1 deletions

View File

@ -51,6 +51,9 @@ Expression | Type (:t) | Value | Comment
`` (`div` 4) `` | `Integral a => a -> a` | | **Sectioning** binds the **second** argument of infix functions; Similar `(/8),(*8),(+8),(-8)` | `` (`div` 4) `` | `Integral a => a -> a` | | **Sectioning** binds the **second** argument of infix functions; Similar `(/8),(*8),(+8),(-8)` |
``divSomethingBy4 = (`div` 4)`` | `Integral a => a -> a` | | ``divSomethingBy4 = (`div` 4)`` | `Integral a => a -> a` | |
`divSomethingBy4 8` | `Integral a => a` | `2` | `divSomethingBy4 8` | `Integral a => a` | `2` |
`const` | `a -> b -> a` | |
`const 8` | `Num a => b -> a` | | function that ignores the input and always returns 8
`const 8 4` | `Num a => a` | `8` |
## Tuples ## Tuples