Search
 
SCRIPT & CODE EXAMPLE
 

ELIXIR

elixir fibonacci

defmodule Fib do 
  def fib(0) do 0 end
  def fib(1) do 1 end
  def fib(n) do fib(n-1) + fib(n-2) end
end

IO.puts Fib.fib(10)
Comment

PREVIOUS NEXT
Code Example
Elixir :: elixir read csv file 
Elixir :: elixir 
Elixir :: elixir append lists 
Elixir :: elixir alias __module__ 
Elixir :: phoenix run test 
Elixir :: elixir list 
Scala :: scala concatenate list 
Scala :: scala string to lower case 
Scala :: scala match 
Scala :: scala home set up 
Scala :: currying scala 
Actionscript :: vivo y11 not connecting to wifi after update 
Excel :: google sheets split cell by delimiter 
Excel :: excel or 
Perl :: perl do while loop 
Perl :: difference between @ and $ in perl 
Pascal :: exceptions in pascal 
Pascal :: pascal print 
Gdscript :: godot check if timer is running 
Clojure :: ex: Clojure define expected time 
Assembly :: vmware workstation player disable side channel mitigations 
Assembly :: set assembly highligh vim 
Assembly :: enter 64 bit mode 
Javascript :: jquery vslidation remove spaces from input 
Javascript :: remove non letters from a string javascript 
Javascript :: window.reload 
Javascript :: javascript split and trim 
Javascript :: update node.js dependencies 
Javascript :: javascript to detect browser 
Javascript :: how to get element by title js 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =