Skip to content

Commit

Permalink
show more readable code sample in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
xrstf committed Dec 28, 2023
1 parent c44941c commit 6537c24
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,18 @@
</p>

Rudi is a Lisp-like, embeddable programming language that focuses on transforming data structures
like those available in JSON (numbers, bools, objects, vectors etc.). A statement in Rudi looks like
like those available in JSON (numbers, bools, objects, vectors etc.). Rudi programs consist of a
series of statements that are evaluated in order:

```lisp
(set! .foo[0] (+ (len .users) 42))
(if (gt? .replicas 5) (error "too many replicas (%d)" .replicas))
(set! .spec.isAdmin (has-suffix? .spec.Email "@initech.com"))
(map! .spec.usages to-lower)
```

Rudi is great for making tasks like manipulating data, implementing policies, setting default values
or normalizing data configurable.

## Contents

* [Features](#features)
Expand Down

0 comments on commit 6537c24

Please sign in to comment.