You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No arguments given: Initializes an empty stringlist(a list containing no elements in it).
104
+
105
+
With argument: Initializes a stringlist equivalent to the input array `array` i.e. a stringlist containing all elements of the input array `array` in the same order.
106
+
107
+
#### Syntax
108
+
109
+
No arguments given: `res = [[stdlib_stringlist(module):stringlist_type(interface)]] ()`
110
+
With argument: `res = [[stdlib_stringlist(module):stringlist_type(interface)]] (array)`
111
+
112
+
#### Status
113
+
114
+
Experimental
115
+
116
+
#### Class
117
+
118
+
Pure function.
119
+
120
+
#### Argument
121
+
122
+
No arguments.
123
+
124
+
With argument: - `array`: array of Character scalar or array of [[stdlib_string_type(module):string_type(type)]].
125
+
This argument is intent(in).
126
+
127
+
#### Result value
128
+
129
+
The result is an instance of type `stringlist_type`.
Inserts the string `string`at the index `idx` such that after insertion is done the newly added element is at index `idx`.
159
+
Inserts the string `string`_AT_ the index `idx`, so that the newly added element is present at index `idx` after insertion. Inserting an element _AT_ index beyond `length + 1` inserts the element _AT_`list_tail`, and likewise inserting _AT_ a non-positive index inserts the element _AT_`list_head`.
46
160
47
161
#### Syntax
48
162
@@ -72,7 +186,7 @@ No result.
72
186
73
187
```fortran
74
188
program demo_insert_at
75
-
use stdlib_stringlist, only: stringlist_type, insert_at, stringlist_index_type, fidx, bidx
189
+
use stdlib_stringlist, only: stringlist_type, stringlist_index_type, fidx, bidx
76
190
use stdlib_string_type, only: string_type
77
191
implicit none
78
192
@@ -102,7 +216,7 @@ end program demo_insert_at
102
216
103
217
#### Description
104
218
105
-
Returns the string present currently at the index `idx` in the given stringlist. If `idx` is out of bounds an empty string is returned.
219
+
Returns the string present currently at the index `idx` in a stringlist. If index `idx` is out of bounds, then an empty string is returned.
106
220
107
221
#### Syntax
108
222
@@ -129,14 +243,14 @@ The result is a string of type `string_type`.
129
243
130
244
```fortran
131
245
program demo_get
132
-
use stdlib_stringlist, only: stringlist_type, insert_at, fidx, get
246
+
use stdlib_stringlist, only: stringlist_type, fidx, bidx
0 commit comments