Skip to content

hdtl functoin #2

@sciencemanx

Description

@sciencemanx

Would you be opposed to adding a hdtl method of type ('a * 'a t) option? It is functionally equivalent to

let hdtl dl = match (hd dl, tl, dl) with
  | (Some h, Some t) -> Some (h, t)
  | _ -> None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions