From 0d4a464c44f580f86400ab89d96fd8c62ea3295a Mon Sep 17 00:00:00 2001 From: Jack Firth Date: Thu, 3 Dec 2015 16:50:57 -0800 Subject: [PATCH] Use clearer example for lens-join/hash Closes #237 --- lens/private/compound/join-hash.scrbl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lens/private/compound/join-hash.scrbl b/lens/private/compound/join-hash.scrbl index f11dcf7..2b57ce7 100644 --- a/lens/private/compound/join-hash.scrbl +++ b/lens/private/compound/join-hash.scrbl @@ -10,8 +10,9 @@ if lenses share views later lenses take precedence when setting. @lens-examples[ - (define a-b-lens (lens-join/hash 'a first-lens - 'b third-lens)) - (lens-view a-b-lens '(1 2 3)) - (lens-set a-b-lens '(1 2 3) (hash 'a 100 'b 200)) + (define first-third-hash-lens + (lens-join/hash 'first first-lens + 'third third-lens)) + (lens-view first-third-hash-lens '(1 2 3)) + (lens-set first-third-hash-lens '(1 2 3) (hash 'first 100 'third 200)) ]}