Skip to content

Commit 2826ca6

Browse files
committed
Update example
1 parent 210ead8 commit 2826ca6

File tree

1 file changed

+40
-10
lines changed

1 file changed

+40
-10
lines changed

lib/node_modules/@stdlib/repl/presentation/examples/presentation.txt

+40-10
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,51 @@
2424
---
2525

2626
| \_\*Standard Library\s\s
27-
\s
2827

29-
--
3028

31-
• utilities
32-
• \rgroupBy\s
33-
• \rpluck\s
29+
---
3430

35-
--
31+
| \_utilities\s
3632

37-
• data structures
38-
• \rStack\s
39-
• \rFIFO\s
33+
• \rgroupBy\s
4034

41-
--
35+
```
36+
function indicator( v ) {
37+
if ( v[ 0 ] === 'b' ) {
38+
return 'b';
39+
}
40+
return 'other';
41+
};
42+
var collection = [ 'beep', 'boop', 'foo', 'bar' ];
43+
var out = groupBy( collection, indicator )
44+
```
45+
46+
47+
---
48+
49+
• \rpluck\s
50+
51+
```
52+
var arr = [
53+
{ 'a': 1, 'b': 2 },
54+
{ 'a': 0.5, 'b': 3 }
55+
];
56+
var out = pluck( arr, 'a' )
57+
```
58+
59+
60+
---
61+
62+
| \_Data Structures\_
63+
64+
• \rLinkedList\s
65+
• \rDoublyLinkedList\s
66+
• \rStack\s
67+
• \rFIFO\s
68+
• ...
69+
70+
71+
---
4272

4373
• consistent interfaces
4474

0 commit comments

Comments
 (0)