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 commit-check, snapshot Jh11inSnBH1eenK5G-juhyzQabT1OLdy3NmjD6OiVCs)
id: zj8YI34F46SIS1n2WkXkE90vgQqS4mxTtYrZ-exxr-g
content hash: ehahwvWMrTMJlBKwWcSLQjtI4KnE9ephULijXnK99zo