We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
list-head return the first n elements of list. It is the opposite of list-tail.
Example 1: Get first 3 and all but the first 3 elements of a 9 element list
> (define lst '(1 2 3 4 5 6 7 8 9)) > (list-head lst 3) (1 2 3) > (list-tail lst 3) (4 5 6 7 8 9)
Sorry, there was an error rendering this page.