Hook
✦ Ruta Oficial AppCloud👥 485.000 desarrolladores

Hook

The Hook cheat sheet is a one-page reference sheet for the Hook programming language.

🔍
Mostrando 77 tarjetas de referencia

Getting Started

5 ejemplos

#Introduction

#What does Hook look like?

#Hello, world!

#Installing with Homebrew

#Installing on Windows

Types and Values

9 ejemplos

#Basic Types

#Bool

#Numbers

#Strings

#Ranges

#Arrays

#Records

#The **nil** value

#Falsy values

Syntax

5 ejemplos

#Comments

#Semi-colons

#Blocks

#Reserved words

#Identifiers

Variables

4 ejemplos

#Variables

#Immutable variables

#Scopes

#Shadowing

Operators and Expressions

6 ejemplos

#Arithmetic

#Comparison

#Logical

#Bitwise and shift

#Assignments

#The ternary operator

Branching

3 ejemplos

#If

#If else

#Match

Looping

6 ejemplos

#While

#Do while

#For

#Loop

#Break

#Continue

Strings

3 ejemplos

#Indexing a string

#Slicing a string

#Concatening strings

Arrays

6 ejemplos

#Indexing an array

#Slicing an array

#Appending an element

#Element assignment

#Concatening arrays

#Subtracting arrays

Functions and Closures

9 ejemplos

#Function declaration

#Function call

#Anonymous functions

#Closures

#Higher-order functions

#Syntax sugar for functions

#Recursion

#Built-in functions

#More built-in functions

Structs

3 ejemplos

#Structs

#Accessing fields

#Field assignment

Destructuring

3 ejemplos

#Destructuring an array

#Destructuring a record

#Placeholder

Modularity

9 ejemplos

#Importing a module

#Exporting symbols

#Importing local modules

#Selective import

#Core modules

#Extension modules

#**io** module

#**hashing** module

#**json** module

Error Handling

6 ejemplos

#Errors

#Syntax error

#Panic

#Assert

#Returning errors

#Passing errors

¿Listo para practicar con ?

Aplica esta sintaxis resolviendo desafíos interactivos con consola en vivo en nuestros 6 módulos de aprendizaje.

Ir al Desafío del Módulo 01 🚀Ver Plan de Estudio Completo