sass-site/source/documentation/values/functions.html.md.erb

18 lines
641 B
Plaintext
Raw Normal View History

2018-09-01 22:35:20 +02:00
---
title: Functions
---
2018-10-25 00:01:43 +02:00
<%= partial 'documentation/snippets/call-impl-status' %>
2018-09-01 22:35:20 +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.
2018-09-01 22:35:20 +02:00
[Functions]: ../at-rules/function
[`meta.get-function` function]: ../modules/meta#get-function
[`meta.call()` function]: ../modules/meta#call
2018-09-01 22:35:20 +02:00
2018-10-25 00:01:43 +02:00
<%= partial 'code-snippets/example-first-class-function' %>