hy
  • Why Hy?
  • Tutorial
  • Syntax
  • Semantics
  • Macros
  • The Hy REPL
  • Environment Variables
  • Command-Line Interface
  • Python Interoperability
  • Model Patterns
  • Cheatsheet
    • Hy
    • Core
  • API
  • Developing Hy
hy
  • Cheatsheet
  • Hy version unknown
  • View page source

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.