Search
 
SCRIPT & CODE EXAMPLE
 

ELIXIR

elixir anonymous function

iex> sum = fn (a, b) -> a + b end
iex> sum.(2, 3) # 5
# The & Shorthand
iex> sum = &(&1 + &2)
iex> sum.(2, 3) # 5
Comment

PREVIOUS NEXT
Code Example
Elixir :: create new project phoenix 
Elixir :: phoenix ecto query bindingess 
Elixir :: elixir list 
Elixir :: elixir nested if 
Scala :: scala schemaPayload json 
Scala :: scala read lines from file 
Scala :: How to declare constant variable in scala 
Scala :: add method to string class scala 
Scala :: scala multiline string 
Actionscript :: hello world in actionscript 
Actionscript :: silk road block-cypher 
Excel :: google sheets return multiple columns with vlookup 
Excel :: and in excel 
Perl :: perl while loop 
Perl :: difference between @ and $ in perl 
Pascal :: pascal output 
Pascal :: Pascal Game 
Powershell :: ps where-object 
Clojure :: how to use clojure cond 
Cobol :: gatsby with yarn 
Assembly :: include code in latex 
Assembly :: IPL_DEPTH_LABEL 
Javascript :: jquery vslidation remove spaces from input 
Javascript :: datatable disable searching 
Javascript :: js random hex color 
Javascript :: WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for jquery 
Javascript :: jquery slim min js url 
Javascript :: js element exists 
Javascript :: select2 in modal not work 
Javascript :: angular validators number only in reactive form 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =