Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
verberktstan authored Feb 13, 2024
1 parent 02de9a6 commit 9964867
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ Require swark.core in your ns form:

Then you can use the Swark utility functions:

```(swark/key-by :id [{:id 1 :name "one"} {:id 2 :name "two"}])```
```(swark/key-by :id [{:id 1} {:id 2}]) => {1 {:id 1} 2 {:id 2}}```

```(swark/map-vals count {:a [:b :c] :d [:e]}) => {:a 2 :d 1}```

```(swark/jab / 10 0) => nil```

## Little tour of Swark utilities

Expand Down

0 comments on commit 9964867

Please sign in to comment.