sass-site/source/documentation/values/functions.html.md.erb
2018-10-24 15:01:43 -07:00

18 lines
625 B
Plaintext

---
title: Functions
---
<%= partial 'documentation/snippets/call-impl-status' %>
[Functions][] can be values too! You can't directly write a function as a value,
but you can pass a function's name to the [`get-function()` function][] to get
it as a value. Once you have a function value, you can pass it to the [`call()`
function][] to call it. This is useful for writing *higher-order functions* that
call other functions.
[Functions]: ../at-rules/function
[`get-function` function]: ../functions/meta#get-function
[`call()` function]: ../functions/meta#call
<%= partial 'code-snippets/example-first-class-function' %>