• OCaml logo OCaml logo
  • Learn
  • Packages
  • Community
  • Blog
  • Playground
  • Searching...
    Or go to: Standard Library API
  • Learn
  • Packages
  • Community
  • Blog
  • Playground
  • Get started
  • core

  • Documentation
  • core lib
  • Core .Sequence Module
package core
  • core
    • Core
      • Arg
      • Array
        • Float
        • Int
        • Permissioned
          • Float
          • Int
      • Bag
        • Elt
        • S
          • Elt
      • Bigbuffer
        • Format
        • Printf
        • To_string
      • Bigstring
        • From_bytes
        • From_string
        • Hexdump
          • Pretty
        • Int_repr
          • Unsafe
        • Private
        • Stable
          • V1
        • To_bytes
        • To_string
        • Unstable
      • Bigsubstring
      • Bin_prot
        • Binable
          • Minimal
            • S
            • S1
            • S2
            • S3
          • S
          • S1
          • S2
          • S3
          • S_only_functions
        • Blob
          • Ignored
          • Opaque
            • Bigstring
            • String
        • Common
          • ReadError
        • Md5
        • Nat0
        • Read
        • Reader
        • Shape
        • Size
          • Maximum
          • Minimum
        • Std
        • Type_class
          • S1
          • S2
          • S3
        • Utils
          • Make_binable1_with_uuid
            • Bin_spec
              • Binable
          • Make_binable1_without_uuid
            • Bin_spec
              • Binable
          • Make_binable2_with_uuid
            • Bin_spec
              • Binable
          • Make_binable2_without_uuid
            • Bin_spec
              • Binable
          • Make_binable3_with_uuid
            • Bin_spec
              • Binable
          • Make_binable3_without_uuid
            • Bin_spec
              • Binable
          • Make_binable_with_uuid
            • Bin_spec
              • Binable
          • Make_binable_without_uuid
            • Bin_spec
              • Binable
          • Make_iterable_binable
            • Iterable_spec
          • Make_iterable_binable1
            • Iterable_spec
          • Make_iterable_binable2
            • Iterable_spec
          • Make_iterable_binable3
            • Iterable_spec
          • Of_minimal
            • S
        • Utils_intf
          • Make_binable1_with_uuid_spec
            • Binable
          • Make_binable1_without_uuid_spec
            • Binable
          • Make_binable2_with_uuid_spec
            • Binable
          • Make_binable2_without_uuid_spec
            • Binable
          • Make_binable3_with_uuid_spec
            • Binable
          • Make_binable3_without_uuid_spec
            • Binable
          • Make_binable_with_uuid_spec
            • Binable
          • Make_binable_without_uuid_spec
            • Binable
          • Make_iterable_binable1_spec
          • Make_iterable_binable2_spec
          • Make_iterable_binable3_spec
          • Make_iterable_binable_spec
          • Utils
            • Make_binable1_with_uuid
              • Bin_spec
                • Binable
            • Make_binable1_without_uuid
              • Bin_spec
                • Binable
            • Make_binable2_with_uuid
              • Bin_spec
                • Binable
            • Make_binable2_without_uuid
              • Bin_spec
                • Binable
            • Make_binable3_with_uuid
              • Bin_spec
                • Binable
            • Make_binable3_without_uuid
              • Bin_spec
                • Binable
            • Make_binable_with_uuid
              • Bin_spec
                • Binable
            • Make_binable_without_uuid
              • Bin_spec
                • Binable
            • Make_iterable_binable
              • Iterable_spec
            • Make_iterable_binable1
              • Iterable_spec
            • Make_iterable_binable2
              • Iterable_spec
            • Make_iterable_binable3
              • Iterable_spec
            • Of_minimal
              • S
        • Write
        • Writer
      • Binable
        • Conv
        • Conv1
        • Conv1_without_uuid
        • Conv2
        • Conv2_without_uuid
        • Conv3
        • Conv3_without_uuid
        • Conv_sexpable
        • Conv_stringable
        • Conv_without_uuid
        • Minimal
        • Of_binable1_with_uuid
          • Binable
          • M
        • Of_binable1_without_uuid
          • Binable
          • M
        • Of_binable2_with_uuid
          • Binable
          • M
        • Of_binable2_without_uuid
          • Binable
          • M
        • Of_binable3_with_uuid
          • Binable
          • M
        • Of_binable3_without_uuid
          • Binable
          • M
        • Of_binable_with_uuid
          • Binable
          • M
        • Of_binable_without_uuid
          • Binable
          • M
        • Of_sexpable_with_uuid
          • M
        • Of_sexpable_without_uuid
          • M
        • Of_stringable_with_uuid
          • M
        • Of_stringable_without_uuid
          • M
        • Stable
          • Of_binable
            • V1
              • Binable
              • M
            • V2
              • Binable
              • M
          • Of_binable1
            • V1
              • Binable
              • M
            • V2
              • Binable
              • M
          • Of_binable2
            • V1
              • Binable
              • M
            • V2
              • Binable
              • M
          • Of_binable3
            • V1
              • Binable
              • M
            • V2
              • Binable
              • M
          • Of_sexpable
            • V1
              • M
            • V2
              • M
          • Of_stringable
            • V1
              • M
            • V2
              • M
      • Binary_searchable
        • S1_permissions
      • Blang
        • Constructors
        • For_monad
          • M
            • Let_syntax
              • Let_syntax
                • Open_on_rhs
            • Monad_infix
        • Let_syntax
          • Let_syntax
            • Open_on_rhs
        • Monad_infix
        • Monadic
          • M
            • Let_syntax
              • Let_syntax
                • Open_on_rhs
            • Monad_infix
        • O
        • Raw
        • Stable
          • V1
      • Blit
        • S1_permissions
        • S_permissions
      • Bool
        • Hash_queue
        • Hash_set
          • Provide_bin_io
            • X
          • Provide_of_sexp
            • X
        • Map
          • Key
          • Provide_bin_io
            • Key
          • Provide_hash
            • Key
          • Provide_of_sexp
            • Key
        • Replace_polymorphic_compare
        • Set
          • Elt
          • Named
          • Provide_bin_io
            • Elt
          • Provide_hash
            • Elt
          • Provide_of_sexp
            • Elt
        • Stable
          • V1
        • Table
          • Provide_bin_io
            • Key
          • Provide_of_sexp
            • Key
      • Bounded_index
        • Make
          • Hash_queue
          • Hash_set
            • Provide_bin_io
              • X
            • Provide_of_sexp
              • X
          • M
          • Map
            • Key
            • Provide_bin_io
              • Key
            • Provide_hash
              • Key
            • Provide_of_sexp
              • Key
          • Replace_polymorphic_compare
          • Set
            • Elt
            • Named
            • Provide_bin_io
              • Elt
            • Provide_hash
              • Elt
            • Provide_of_sexp
              • Elt
          • Stable
            • V1
              • Map
              • Set
          • Table
            • Provide_bin_io
              • Key
            • Provide_of_sexp
              • Key
        • S
          • Hash_queue
          • Hash_set
            • Provide_bin_io
              • X
            • Provide_of_sexp
              • X
          • Map
            • Key
            • Provide_bin_io
              • Key
            • Provide_hash
              • Key
            • Provide_of_sexp
              • Key
          • Replace_polymorphic_compare
          • Set
            • Elt
            • Named
            • Provide_bin_io
              • Elt
            • Provide_hash
              • Elt
            • Provide_of_sexp
              • Elt
          • Stable
            • V1
              • Map
              • Set
          • Table
            • Provide_bin_io
              • Key
            • Provide_of_sexp
              • Key
      • Byte_units
        • Hash_queue
        • Hash_set
          • Provide_bin_io
            • X
          • Provide_of_sexp
            • X
        • Infix
        • Map
          • Key
          • Provide_bin_io
            • Key
          • Provide_hash
            • Key
          • Provide_of_sexp
            • Key
        • Replace_polymorphic_compare
        • Set
          • Elt
          • Named
          • Provide_bin_io
            • Elt
          • Provide_hash
            • Elt
          • Provide_of_sexp
            • Elt
        • Short
        • Stable
          • V1
          • V2
        • Table
          • Provide_bin_io
            • Key
          • Provide_of_sexp
            • Key
      • Bytes
        • Hexdump
          • Pretty
        • Stable
          • V1
      • Caml
        • Condition
        • Mutex
        • Thread
        • Unix
        • UnixLabels
      • Char
        • Caseless
          • Hash_queue
          • Hash_set
            • Provide_bin_io
              • X
            • Provide_of_sexp
              • X
          • Map
            • Key
            • Provide_bin_io
              • Key
            • Provide_hash
              • Key
            • Provide_of_sexp
              • Key
          • Replace_polymorphic_compare
          • Set
            • Elt
            • Named
            • Provide_bin_io
              • Elt
            • Provide_hash
              • Elt
            • Provide_of_sexp
              • Elt
          • Table
            • Provide_bin_io
              • Key
            • Provide_of_sexp
              • Key
        • Hash_queue
        • Hash_set
          • Provide_bin_io
            • X
          • Provide_of_sexp
            • X
        • Map
          • Key
          • Provide_bin_io
            • Key
          • Provide_hash
            • Key
          • Provide_of_sexp
            • Key
        • Replace_polymorphic_compare
        • Set
          • Elt
          • Named
          • Provide_bin_io
            • Elt
          • Provide_hash
            • Elt
          • Provide_of_sexp
            • Elt
        • Table
          • Provide_bin_io
            • Key
          • Provide_of_sexp
            • Key
      • Command
        • Anons
        • Arg_type
          • Export
          • For_testing
        • Auto_complete
        • Deprecated
          • Spec
        • Enumerable_sexpable
        • Enumerable_stringable
        • Flag
        • Let_syntax
          • Let_syntax
        • Param
          • Applicative_infix
          • Arg_type
            • Export
            • For_testing
          • If_nothing_chosen
          • S
            • Applicative_infix
            • If_nothing_chosen
        • Path
        • Shape
          • Anons
            • Grammar
          • Base_info
            • Fields
              • Direct
          • Exec_info
            • Fields
              • Direct
          • Flag_help_display
          • Flag_info
            • Fields
              • Direct
          • Fully_forced
          • Group_info
            • Fields
              • Direct
          • Num_occurrences
            • Fields
              • Direct
          • Sexpable
            • Versioned
        • Spec
          • Applicative_infix
          • Arg_type
            • Export
            • For_testing
          • If_nothing_chosen
      • Comparable
        • Extend
          • M
          • Map
            • Key
            • Provide_bin_io
              • Key
            • Provide_hash
              • Key
            • Provide_of_sexp
              • Key
          • Replace_polymorphic_compare
          • Set
            • Elt
            • Named
            • Provide_bin_io
              • Elt
            • Provide_hash
              • Elt
            • Provide_of_sexp
              • Elt
          • X
        • Extend_binable
          • M
          • Map
            • Key
            • Provide_bin_io
              • Key
            • Provide_hash
              • Key
            • Provide_of_sexp
              • Key
          • Replace_polymorphic_compare
          • Set
            • Elt
            • Named
            • Provide_bin_io
              • Elt
            • Provide_hash
              • Elt
            • Provide_of_sexp
              • Elt
          • X
        • Infix
          • T
        • Inherit
          • C
          • Map
            • Key
            • Provide_bin_io
              • Key
            • Provide_hash
              • Key
            • Provide_of_sexp
              • Key
          • Replace_polymorphic_compare
          • Set
            • Elt
            • Named
            • Provide_bin_io
              • Elt
            • Provide_hash
              • Elt
            • Provide_of_sexp
              • Elt
          • T
        • Make
          • Map
            • Key
            • Provide_bin_io
              • Key
            • Provide_hash
              • Key
            • Provide_of_sexp
              • Key
          • Replace_polymorphic_compare
          • Set
            • Elt
            • Named
            • Provide_bin_io
              • Elt
            • Provide_hash
              • Elt
            • Provide_of_sexp
              • Elt
          • T
        • Make_binable
          • Map
            • Key
            • Provide_bin_io
              • Key
            • Provide_hash
              • Key
            • Provide_of_sexp
              • Key
          • Replace_polymorphic_compare
          • Set
            • Elt
            • Named
            • Provide_bin_io
              • Elt
            • Provide_hash
              • Elt
            • Provide_of_sexp
              • Elt
          • T
        • Make_binable_using_comparator
          • Map
            • Key
            • Provide_bin_io
              • Key
            • Provide_hash
              • Key
            • Provide_of_sexp
              • Key
          • Replace_polymorphic_compare
          • Set
            • Elt
            • Named
            • Provide_bin_io
              • Elt
            • Provide_hash
              • Elt
            • Provide_of_sexp
              • Elt
          • T
        • Make_plain
          • Map
            • Key
            • Provide_bin_io
              • Key
            • Provide_hash
              • Key
            • Provide_of_sexp
              • Key
          • Replace_polymorphic_compare
          • Set
            • Elt
            • Named
            • Provide_bin_io
              • Elt
            • Provide_hash
              • Elt
            • Provide_of_sexp
              • Elt
          • T
        • Make_plain_using_comparator
          • Map
            • Key
            • Provide_bin_io
              • Key
            • Provide_hash
              • Key
            • Provide_of_sexp
              • Key
          • Replace_polymorphic_compare
          • Set
            • Elt
            • Named
            • Provide_bin_io
              • Elt
            • Provide_hash
              • Elt
            • Provide_of_sexp
              • Elt
          • T
        • Make_using_comparator
          • Map
            • Key
            • Provide_bin_io
              • Key
            • Provide_hash
              • Key
            • Provide_of_sexp
              • Key
          • Replace_polymorphic_compare
          • Set
            • Elt
            • Named
            • Provide_bin_io
              • Elt
            • Provide_hash
              • Elt
            • Provide_of_sexp
              • Elt
          • T
        • Map_and_set_binable
          • Map
            • Key
            • Provide_bin_io
              • Key
            • Provide_hash
              • Key
            • Provide_of_sexp
              • Key
          • Set
            • Elt
            • Named
            • Provide_bin_io
              • Elt
            • Provide_hash
              • Elt
            • Provide_of_sexp
              • Elt
          • T
        • Map_and_set_binable_using_comparator
          • Map
            • Key
            • Provide_bin_io
              • Key
            • Provide_hash
              • Key
            • Provide_of_sexp
              • Key
          • Set
            • Elt
            • Named
            • Provide_bin_io
              • Elt
            • Provide_hash
              • Elt
            • Provide_of_sexp
              • Elt
          • T
        • Poly
          • Map
            • Key
            • Provide_bin_io
              • Key
            • Provide_hash
              • Key
            • Provide_of_sexp
              • Key
          • Replace_polymorphic_compare
          • Set
            • Elt
            • Named
            • Provide_bin_io
              • Elt
            • Provide_hash
              • Elt
            • Provide_of_sexp
              • Elt
          • T
        • Polymorphic_compare
          • T
        • S
          • Map
            • Key
            • Provide_bin_io
              • Key
            • Provide_hash
              • Key
            • Provide_of_sexp
              • Key
          • Replace_polymorphic_compare
          • Set
            • Elt
            • Named
            • Provide_bin_io
              • Elt
            • Provide_hash
              • Elt
            • Provide_of_sexp
              • Elt
        • S_binable
          • Map
            • Key
            • Provide_bin_io
              • Key
            • Provide_hash
              • Key
            • Provide_of_sexp
              • Key
          • Replace_polymorphic_compare
          • Set
            • Elt
            • Named
            • Provide_bin_io
              • Elt
            • Provide_hash
              • Elt
            • Provide_of_sexp
              • Elt
        • S_common
          • Replace_polymorphic_compare
        • S_plain
          • Map
            • Key
            • Provide_bin_io
              • Key
            • Provide_hash
              • Key
            • Provide_of_sexp
              • Key
          • Replace_polymorphic_compare
          • Set
            • Elt
            • Named
            • Provide_bin_io
              • Elt
            • Provide_hash
              • Elt
            • Provide_of_sexp
              • Elt
        • Stable
          • V1
            • Make
              • Map
              • Set
              • X
            • S
              • Map
              • Set
        • Validate
          • T
        • Validate_with_zero
          • T
        • With_zero
          • T
      • Comparator
        • Stable
          • V1
            • Make
              • M
            • Make1
              • M
            • S
            • S1
      • Container
      • Container_intf
        • Container
        • S1_permissions
      • Core_kernel_stable
        • Make_stable
          • Of_stable_format
            • V1
              • M
              • Stable_format
          • Of_stable_format1
            • V1
              • M
              • Stable_format
          • Of_stable_format2
            • V1
              • M
              • Stable_format
        • Stable
        • Stable1
        • Stable2
        • Stable3
        • Stable4
        • Stable_without_comparator
        • Time
          • Ofday
            • Zoned
          • Span
            • V1
            • V2
            • V3
          • V1
          • With_t_of_sexp_abs
          • With_utc_sexp
            • V1
            • V2
              • Map
              • Set
          • Zone
            • Full_data
              • V1
            • V1
        • Unix
      • Core_private
        • Bigbuffer_internal
        • Digit_string_helpers
          • Round
          • Unsafe
        • Ofday_helpers
        • Span_float
          • Hash_queue
          • Hash_set
            • Provide_bin_io
              • X
            • Provide_of_sexp
              • X
          • Map
            • Key
            • Provide_bin_io
              • Key
            • Provide_hash
              • Key
            • Provide_of_sexp
              • Key
          • Parts
          • Private
          • Replace_polymorphic_compare
          • Set
            • Elt
            • Named
            • Provide_bin_io
              • Elt
            • Provide_hash
              • Elt
            • Provide_of_sexp
              • Elt
          • Stable
            • V1
            • V2
            • V3
          • Table
            • Provide_bin_io
              • Key
            • Provide_of_sexp
              • Key
        • Stable_internal
        • Std_internal
          • LargeFile
        • Time_ns_alternate_sexp
        • Time_zone
          • Index
          • S
            • Index
            • Time_in_seconds
              • Date_and_ofday
              • Span
          • S_stable
            • Full_data
              • V1
          • Stable
            • Full_data
              • V1
          • Time_in_seconds
            • Date_and_ofday
            • Span
      • Core_stable
        • Make_stable
          • Of_stable_format
            • V1
              • M
              • Stable_format
          • Of_stable_format1
            • V1
              • M
              • Stable_format
          • Of_stable_format2
            • V1
              • M
              • Stable_format
        • Stable
        • Stable1
        • Stable2
        • Stable3
        • Stable4
        • Stable_without_comparator
        • Time
          • Ofday
            • Zoned
          • Span
            • V1
            • V2
            • V3
          • V1
          • With_t_of_sexp_abs
          • With_utc_sexp
            • V1
            • V2
              • Map
              • Set
          • Zone
            • Full_data
              • V1
            • V1
        • Unix
      • Date
        • Days
        • Hash_queue
        • Hash_set
          • Provide_bin_io
            • X
          • Provide_of_sexp
            • X
        • Map
          • Key
          • Provide_bin_io
            • Key
          • Provide_hash
            • Key
          • Provide_of_sexp
            • Key
        • O
        • Option
          • Map
            • Key
            • Provide_bin_io
              • Key
            • Provide_hash
              • Key
            • Provide_of_sexp
              • Key
          • Optional_syntax
            • Optional_syntax
          • Replace_polymorphic_compare
          • Set
            • Elt
            • Named
            • Provide_bin_io
              • Elt
            • Provide_hash
              • Elt
            • Provide_of_sexp
              • Elt
        • Private
        • Replace_polymorphic_compare
        • Set
          • Elt
          • Named
          • Provide_bin_io
            • Elt
          • Provide_hash
            • Elt
          • Provide_of_sexp
            • Elt
        • Stable
          • Option
            • V1
          • V1
            • Hash_set
            • Map
            • Set
            • Table
        • Table
          • Provide_bin_io
            • Key
          • Provide_of_sexp
            • Key
      • Day_of_week
        • Hash_queue
        • Hash_set
          • Provide_bin_io
            • X
          • Provide_of_sexp
            • X
        • Map
          • Key
          • Provide_bin_io
            • Key
          • Provide_hash
            • Key
          • Provide_of_sexp
            • Key
        • Replace_polymorphic_compare
        • Set
          • Elt
          • Named
          • Provide_bin_io
            • Elt
          • Provide_hash
            • Elt
          • Provide_of_sexp
            • Elt
        • Stable
          • V1
            • Hash_set
            • Map
            • Set
            • Table
        • Table
          • Provide_bin_io
            • Key
          • Provide_of_sexp
            • Key
      • Debug
        • Make
      • Deque
      • Deriving_hash
        • Of_deriving_hash
          • M
          • Repr
      • Doubly_linked
        • Elt