contains_value_and_time 1.0.1
contains_value_and_time: ^1.0.1 copied to clipboard
A Dart package that provides a function to check if a list contains a specified value and returns the index of the value along with the time taken to find it.
example/contains_value_and_time_example.dart
import 'package:contains_value_and_time/contains_value_and_time.dart';
void main() {
print('ContainsValueAndTime: ${containsValueAndTime([1,2,3,4,5,6,7,8,9,0], 7)}');
print('ContainsValueAndTime: ${containsValueAndTime([1,2,3,4,5,6,7,8,9,0], 5)}');
print('ContainsValueAndTime: ${containsValueAndTime([1,2,3,4,5,6,7,8,9,0], 2)}');
}