mirror of
https://github.com/danog/sass-site.git
synced 2024-12-04 18:38:12 +01:00
20 lines
714 B
Plaintext
20 lines
714 B
Plaintext
---
|
|
title: Functions
|
|
---
|
|
|
|
{% render 'doc_snippets/call-impl-status' %}
|
|
|
|
{% markdown %}
|
|
[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 [`meta.get-function()`
|
|
function][] to get it as a value. Once you have a function value, you can pass
|
|
it to the [`meta.call()` function][] to call it. This is useful for writing
|
|
*higher-order functions* that call other functions.
|
|
|
|
[Functions]: /documentation/at-rules/function
|
|
[`meta.get-function()` function]: /documentation/modules/meta#get-function
|
|
[`meta.call()` function]: /documentation/modules/meta#call
|
|
{% endmarkdown %}
|
|
|
|
{% render 'code_snippets/example-first-class-function' %}
|