We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39124ae commit e292ed9Copy full SHA for e292ed9
pydatastructs/linear_data_structures/arrays.py
@@ -515,14 +515,14 @@ class OneDimensionalImplicitArray(ImplicitArray):
515
Note
516
====
517
518
- At least one parameter should be passed as an argument along
+ At least two parameters should be passed as an argument along
519
with the dtype.
520
521
Examples
522
========
523
524
>>> from pydatastructs import OneDimensionalImplicitArray
525
- >>> arr = OneDimensionalImplicitArray(lambda i: i+1, int, 5)
+ >>> arr = OneDimensionalImplicitArray(int, lambda i: i+1, 5)
526
>>> arr[0]
527
6
528
>>> arr[1]
0 commit comments