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

output of find : [a] -> [a] different in "πŸ—Ί A tour of Unison"β†’"πŸŽ‰ Running the UCM" #51

Open
das-g opened this issue Mar 14, 2023 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@das-g
Copy link

das-g commented Mar 14, 2023

In πŸ—Ί A tour of Unison, section πŸŽ‰ Running the UCM, there are currently the following instructions:

[…] Try out the following commands (new syntax is explained below):

.> find : [a] -> [a]

  1. base.data.List.distinct : [a] -> [a]
  2. base.data.Heap.sort : [a] -> [a]
  3. base.data.List.dropLast : [a] -> [a]
  4. base.data.List.reverse : [a] -> [a]
  5. base.data.Heap.sortDescending : [a] -> [a]

.> view 4

  base.data.List.reverse : [a] -> [a]
  base.data.List.reverse as = List.foldLeft (acc a -> a +: acc) [] as

However, the current output of find : [a] -> [a] is:

  1.  base.data.deprecated.Heap.sortDescending : [a] -> [a]
  2.  quickstart.lib.base.data.deprecated.Heap.sortDescending : [a] -> [a]
  3.  base.data.deprecated.Heap.sort : [a] -> [a]
  4.  quickstart.lib.base.data.deprecated.Heap.sort : [a] -> [a]
  5.  base.data.List.distinct : [a] -> [a]
  6.  quickstart.lib.base.data.List.distinct : [a] -> [a]
  7.  base.data.List.sort : [a] -> [a]
  8.  quickstart.lib.base.data.List.sort : [a] -> [a]
  9.  base.data.List.dropLast : [a] -> [a]
  10. quickstart.lib.base.data.List.dropLast : [a] -> [a]
  11. base.data.List.reverse : [a] -> [a]
  12. quickstart.lib.base.data.List.reverse : [a] -> [a]

and thus one would have to run

view 11

to look at the source code for List.reverse.

version information

  • ucm version: release/M4h (built on 2023-02-21)
  • nix store path: /nix/store/0myzdlryjwprqvsyl40d3g0v27cnbac6-unison-code-manager-1.0.M4h-alpha/bin/ucm
  • .base: public.base.releases.v1_1_1

output of nix-info -m:

  • system: "x86_64-linux"
  • host os: Linux 6.1.15, NixOS, 23.05 (Stoat), 23.05pre461539.c90c4025bb6
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.13.3
  • channels(root): "nixos, nixos-unstable"
  • channels(das-g): ""
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos
@das-g das-g changed the title output of find : [a] -> [a] different in "world_map A tour of Unison"β†’"tada Running the UCM" output of find : [a] -> [a] different in "πŸ—Ί A tour of Unison"β†’"πŸŽ‰ Running the UCM" Mar 14, 2023
@rlmark rlmark self-assigned this Mar 16, 2023
@rlmark rlmark added the documentation Improvements or additions to documentation label Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants