mirror of
https://github.com/danog/sass-site.git
synced 2024-12-16 03:17:15 +01:00
b1b07540f2
Closes #363
18 lines
641 B
Plaintext
18 lines
641 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 [`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]: ../at-rules/function
|
|
[`meta.get-function` function]: ../modules/meta#get-function
|
|
[`meta.call()` function]: ../modules/meta#call
|
|
|
|
<%= partial 'code-snippets/example-first-class-function' %>
|