Search
 
SCRIPT & CODE EXAMPLE
 

LUA

Ackermann function lua

local function Ackermann(m, n)
    if m == 0 then
        return (n + 1)
    elseif n == 0 then
        Ackermann(m - 1, 1)
    else
        Ackermann(m - 1, Ackermann(m, n - 1))
    end
end
Comment

PREVIOUS NEXT
Code Example
Lua :: lua how to print NUMBER 
Lua :: C++ 914 card 
Lua :: how to see greatest value in a table lua 
Lua :: In range loop 
Lua :: lua class example 
Lua :: lua text script 
Lua :: Lua how to comment 
Matlab :: switch matlab 
Matlab :: log base 10 matlab 
Matlab :: if else in matlab 
Matlab :: octave clear figure 
Matlab :: how to set for with 2 increases in matlab 
Basic :: basic latex document 
Basic :: basic authentication in REST api Dajngo 
Basic :: JsonFileWrapper 
Elixir :: elixir check type data 
Elixir :: elixir enum any 
Elixir :: liveview component update 
Scala :: scala map example 
Scala :: if scala 
Actionscript :: mount_osxfuse: /Users/em/mount_dev: Input/output error 
Excel :: convert number to date in excel 
Perl :: perl for loop 
Pascal :: pascal halt program until any button is pressed 
Powershell :: debloat window 10 
Gdscript :: gdscript variables 
Cobol :: cobol 
Assembly :: wget output filename 
Assembly :: fatal error: opencv2/core/version.hpp: No such file or directory 
Javascript :: jquery vslidation remove spaces from input 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =