714 search results for ""

Showing 701 - 714
  1. File Manipulation

    Example

    <!-- $MDX dir=examples --> We can compile and run this example: <!-- $MDX file=examples/file_manip.ml -->

    Tutorials
  2. Installing OCaml

    For Windows

    It's easiest to install opam with WinGet :

    First Steps
  3. Maps

    Map a Map

    The keys are the same in both maps. For each key, a value in lucky_numbers is converted into a value in lucky_strings using string_of_int . Using StringMap.map , we create a map associatin

    Data Structures
  4. Sets

    Conclusion

    We gave an overview of OCaml's Set module by creating a StringSet module using the Set.Make functor. Further, we looked at how to create sets based on a custom comparison function. For more inf

    Data Structures
  5. Sets

    Union of Two Sets

    With the function StringSet.union , we can compute the union of two sets.

    Data Structures
  6. Sets

    Working With Sets

    Let's look at a few functions for working with sets using these two sets.

    Data Structures
  7. Maps

    Conclusion

    For more information, refer to Map in the Standard Library documentation. This was an overview of OCaml's Map module. Maps are reasonably efficient and can be an alternative to the imperativ

    Data Structures
  8. Maps

    Working With Maps

    Throughout the rest of this tutorial, we will use the following map:

    Data Structures
  9. Configuring Your Editor

    Vim

    After installing Merlin above, instructions will be printed on how to link Merlin with your editor. If you do not have them visible, just run this command: For Vim, we won't use the LSP server b

    Tooling
  10. Profiling

    .text

    Text is the Unix way of saying "program code". The text segment simply means the part of the executable where program code is stored. The .text directive switches the assembler so it starts w

    Guides
  11. Operators

    Goals

    Using operators as functions and reciprocally, using functions as operators Assign the right associativity and precedence to a custom operator Use and define custom let binders The learning goals o

    Advanced Topics
  12. First-Class Modules

    Heterogeneous Collections

    Module System
  13. OCaml Docker Images

    Example: Basic Usage

    Additional Tooling
  14. First-Class Modules

    Plugin Registry

    Module System