diff options
author | Lukas Larsson <[email protected]> | 2018-12-14 08:56:22 +0100 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2018-12-14 08:56:22 +0100 |
commit | f191f67b98c3efeef08045b212472ed9af1f0d7b (patch) | |
tree | b60729e5187930572a1d38531d87e2f966de74d5 | |
parent | 9959f0cf1fb563f12a79638fc5173d8d387c7313 (diff) | |
parent | 06fc3e9b108c4b0e8c030756bcc272512f92a32f (diff) | |
download | otp-f191f67b98c3efeef08045b212472ed9af1f0d7b.tar.gz otp-f191f67b98c3efeef08045b212472ed9af1f0d7b.tar.bz2 otp-f191f67b98c3efeef08045b212472ed9af1f0d7b.zip |
Merge branch 'lukas/stdlib/maps_iterator_docs' into maint
-rw-r--r-- | lib/stdlib/doc/src/maps.xml | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/lib/stdlib/doc/src/maps.xml b/lib/stdlib/doc/src/maps.xml index acc4850bd9..e2a62cb397 100644 --- a/lib/stdlib/doc/src/maps.xml +++ b/lib/stdlib/doc/src/maps.xml @@ -202,12 +202,12 @@ false</code> <code type="none"> > M = #{ a => 1, b => 2 }. #{a => 1,b => 2} -> I = maps:iterator(M). -[{a,1},{b,2}] -> {K1, V1, I2} = maps:next(I). -{a,1,[{b,2}]} -> {K2, V2, I3} = maps:next(I2). -{b,2,[]} +> I = maps:iterator(M), ok. +ok +> {K1, V1, I2} = maps:next(I), {K1, V1}. +{a,1} +> {K2, V2, I3} = maps:next(I2),{K2, V2}. +{b,2} > maps:next(I3). none</code> </desc> @@ -298,15 +298,15 @@ none</code> <code type="none"> > Map = #{a => 1, b => 2, c => 3}. #{a => 1,b => 2,c => 3} -> Iter = maps:iterator(Map). -[{a,1},{b,2},{c,3}] -> {_, _, Iter1} = maps:next(Iter). -{a,1,[{b,2},{c,3}]} -> {_, _, Iter2} = maps:next(Iter1). -{b,2,[{c,3}]} -> {_, _, Iter3} = maps:next(Iter2). -{c,3,[]} -> maps:next(Iter3). +> I = maps:iterator(Map), ok. +ok +> {K1, V1, I1} = maps:next(I), {K1, V1}. +{a,1} +> {K2, V2, I2} = maps:next(I1), {K2, V2}. +{b,2} +> {K3, V3, I3} = maps:next(I2), {K3, V3}. +{c,3} +> maps:next(I3). none</code> </desc> </func> |