Skip to content

Commit

Permalink
Add doc string for take-while
Browse files Browse the repository at this point in the history
  • Loading branch information
Olical committed Sep 14, 2024
1 parent 8499fcc commit d30f22b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/nfnl/core.md
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ Function signature:
(take-while f xs)
```

**Undocumented**
Takes values from xs while (f x) returns true.

## `update`
Function signature:
Expand Down
1 change: 1 addition & 0 deletions fnl/nfnl/core.fnl
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,7 @@
nil)

(fn take-while [f xs]
"Takes values from xs while (f x) returns true."
(local xs (seq xs))
(when xs
(var acc [])
Expand Down

0 comments on commit d30f22b

Please sign in to comment.