hy
master
  • Why Hy?
  • Tutorial
  • Syntax
  • Semantics
  • Macros
  • The Hy REPL
  • Environment Variables
  • Command-Line Interface
  • Python Interoperability
  • Model Patterns
  • Cheatsheet
    • Hy
    • Core
  • API
  • Hacking on Hy
hy
  • Cheatsheet
  • Hy version 0.25.0+144.g58a870e4 (unstable)
  • Edit on GitHub

Cheatsheet¶

Hy¶

IO

repr repr-register mangle unmangle read read-str

Reader

eval gensym macroexpand macroexpand-1 disassemble as-model

Core¶

Meta

doc

Macros

when cond

Special Forms

^ . annotate fn fn/a defn defn/a defmacro if assert get global import eval-and-compile eval-when-compile await break chainc continue do for lfor dfor gfor sfor setv setx let match defclass del nonlocal py pys quasiquote quote require return cut raise try unpack-iterable/unpack-mapping unquote unquote-splice while with with/a yield yield-from

Arithmetic

@ % + - * ** / //

Comparison

cond < > <= >= = != is not? in not-in

Bitwise

<< >> & | ^ ~

Logic

not and or
Previous Next

© Copyright 2023 the authors. Revision 58a870e4.

Read the Docs v: master
Versions
master
stable
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds