Explorer

std.list-head

description
Get the first item of a list (none if the list is empty)
type
Fn(xs: List<Number>) -> Union{#none, #some(Number)}
expression
fn(xs$1) =>
  @core.list-get(list: $1, index: 0)
visibility
public
std.list-head (project definy, branch http-cbor, snapshot 2jdLzxAm7E__OLNmiW8b5Qn5SeDXn9HnpZiFUpkZj2I)
id: zj8YI34F46SIS1n2WkXkE90vgQqS4mxTtYrZ-exxr-g
content hash: ehahwvWMrTMJlBKwWcSLQjtI4KnE9ephULijXnK99zo