comigor/fuzzy

Example does not work

Opened this issue · 0 comments

ltOgt commented
import 'package:fuzzy/fuzzy.dart';

void main() {
  final fuse = Fuzzy(['apple', 'banana', 'orange']);

  final result = fuse.search('ran');

  result.map((r) => r.output.first.value).forEach(print);
  //                  ^^^^^^ The getter 'output' isn't defined for the type 'Result<String>'
}

Should probably be r.matches instead