function helloWorld() {console.log("hi")}TODOfunction myFunction()
print("hello")
endmixin 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 articleprocfn main {
}on myFunction do
print["hello"]
endfunc fib(n int) int:
coyield
if n < 2:
return n
return fib(n - 1) + fib(n - 2)fn a_function() {
// ...
}fun main(argc s32, argv ^^u8) s32:
-- initialized to false
let! board = [DIM][DIM]bool{}
let n = Solve(&!board, 0)
fmt::print#(n, "\n")
return 0function Example (|string| data)
file <~ data(fn (x) (+ x 1))- call !FooBar %name%FUNCTION TORADS(DEGREES) = DEGREES . 3.1415926/180$Languages with Functions include JavaScript, C, Python, Java, Ruby, PHP, R, PowerShell, Bash, Rust, Scala, Lua, Kotlin, Haskell, Erlang, Julia, Solidity, Ada, Crystal, Reason, Pug, Chapel, Groovy, OCaml, F#, VHDL, C3, F*, ABAP, Verilog, Koka, Janet, Opa, MoonBit, Lil, SystemVerilog, progsbase, X10, ATS, Cyber, Jule, IGOR Pro, Ligo, Cwerg, Eclipse Command Language, Sophia, Speedie, Bel, plang, Q#, BALGOL
Languages without Functions include CSS, mmCIF
View all concepts with or missing a hasFunctions measurement
Read more about Functions on the web: 1.