function helloWorld() {console.log("hi")}
mixin article(title)
.article
.article-wrapper
h1= title
if block
block
else
p No content provided
+article('Hello world')
+article('Hello world')
p This is my
p Amazing article
function Example (|string| data)
file <~ data
fn a_function() {
// ...
}
(fn (x) (+ x 1))
func fib(n int) int:
coyield
if n < 2:
return n
return fib(n - 1) + fib(n - 2)
FUNCTION TORADS(DEGREES) = DEGREES . 3.1415926/180$
Languages with Functions include JavaScript, Python, PHP, Ruby, R, Scala, Ada, Kotlin, PowerShell, TypeScript, Lua, Julia, Bash, Erlang, Solidity, Verilog, Reason, Crystal, F#, OCaml, Groovy, VHDL, Pug, ABAP, X10, Opa, F*, SystemVerilog, Cython, C3, ATS, Speedie, janet, Koka, progsbase, IGOR Pro, Jule, Bel, Eclipse Command Language, Cyber, Q#, Ligo, Sophia, BALGOL
Languages without Functions include CSS
This question asks: Does the language have a concept of and syntax for functions?
Read more about Functions on the web: 1.
HTML of this page generated by Features.ts