2023-06-05 21:41:47 +02:00
|
|
|
---
|
|
|
|
title: Functions
|
|
|
|
---
|
|
|
|
|
2023-06-08 23:10:09 +02:00
|
|
|
{% render 'doc_snippets/call-impl-status' %}
|
2023-06-05 21:41:47 +02:00
|
|
|
|
|
|
|
{% markdown %}
|
2023-06-08 23:10:09 +02:00
|
|
|
[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.
|
2023-06-05 21:41:47 +02:00
|
|
|
|
|
|
|
[Functions]: /documentation/at-rules/function
|
|
|
|
[`meta.get-function()` function]: /documentation/modules/meta#get-function
|
|
|
|
[`meta.call()` function]: /documentation/modules/meta#call
|
|
|
|
{% endmarkdown %}
|
|
|
|
|
2023-06-08 10:05:58 +02:00
|
|
|
{% render 'code_snippets/example-first-class-function' %}
|