Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lazy.map #10097

Merged
merged 4 commits into from
Apr 14, 2021
Merged

Lazy.map #10097

merged 4 commits into from
Apr 14, 2021

Commits on Apr 14, 2021

  1. Configuration menu
    Copy the full SHA
    812f546 View commit details
    Browse the repository at this point in the history
  2. Lazy.{map,opportune_map} : ('a -> 'b) -> 'a Lazy.t -> 'b Lazy.t

    (Lazy.opportune_map f x) applies f directly if x is already forced,
    whereas (Lazy.map f x) is always (lazy (f (Lazy.force x))).
    gasche committed Apr 14, 2021
    Configuration menu
    Copy the full SHA
    09c940f View commit details
    Browse the repository at this point in the history
  3. move opportune_map into the already-forced section, rename into map_val

    (suggestion from Stephen Dolan)
    gasche committed Apr 14, 2021
    Configuration menu
    Copy the full SHA
    9ee6e6d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3d93b0b View commit details
    Browse the repository at this point in the history