PLDB
Languages Features Creators Calendar CSV Resources Blog About Donate Add Language
GitHub icon

Functions

< >
function helloWorld() {console.log("hi")}
Example from Pug:
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
Example from Jule:
fn a_function() { // ... }
Example from Bel:
(fn (x) (+ x 1))
Example from Cyber:
func fib(n int) int: coyield if n < 2: return n return fib(n - 1) + fib(n - 2)
Example from BALGOL:
FUNCTION TORADS(DEGREES) = DEGREES . 3.1415926/180$

Languages with Functions include JavaScript, Python, PHP, Ruby, R, Scala, Ada, Kotlin, PowerShell, Lua, TypeScript, Bash, Erlang, Julia, Verilog, Solidity, Reason, Crystal, F#, OCaml, Groovy, VHDL, Pug, ABAP, X10, F*, SystemVerilog, Opa, Cython, ATS, C3, janet, Koka, progsbase, IGOR Pro, Jule, Bel, Eclipse Command Language, Cyber, Q#, Ligo, BALGOL, Sophia, Static Typescript

Languages without Functions include CSS

Read more about Functions on the web: 1.

HTML of this page generated by Features.ts

hasFunctionOverloading.html 路 hasFunctions.html 路 hasGarbageCollection.html

View source

PLDB - Build the next great programming language Search v2023 Day 157 Docs Acknowledgements Traffic Today Traffic Trends Mirrors GitHub feedback@pldb.com