Skip to content

Syntax #1

@alehander92

Description

@alehander92

Something inspired by Nim and Python.

Int -> Int
def fib(a):
  if a < 2:
    1
  else:
    fib(a - 1) + fib(a - 2)

echo(fib(0))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions