Skip to content

Commit

Permalink
Fix list_next example
Browse files Browse the repository at this point in the history
  • Loading branch information
EmelyanenkoK authored Aug 26, 2023
1 parent e452628 commit cf66c5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/develop/func/stdlib.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ forall X -> (tuple, X) list_next(tuple list) asm( -> 1 0) "UNCONS";
Extracts the head and tail of a lisp-style list. Can be used as a [(non-)modifying method](/develop/func/statements#methods-calls).
```func
() foo(tuple xs) {
int x = xs.list_next(); ;; get the first element
(_, int x) = xs.list_next(); ;; get the first element, `_` means do not use tail list
int y = xs~list_next(); ;; pop the first element
int z = xs~list_next(); ;; pop the second element
}
Expand Down

0 comments on commit cf66c5f

Please sign in to comment.