Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -484,13 +484,14 @@ These functions include various utilities for dealing with the data types in Nix
them to familiarise yourself with what is available.

```nix
{ pkgs ? import <nixpkgs> {} }:
({ pkgs ? import <nixpkgs> {} }:

with pkgs.lib; # bring contents pkgs.lib into scope

strings.toUpper "hello"
Comment thread
MrMarvel marked this conversation as resolved.
strings.toUpper "hello") {}

# yields "HELLO"
# parentheses "()" are needed to distinguish the function from its argument set "{}"
```

## `pkgs` itself
Expand Down
Loading