added /sentance/ chunking

serve
Avril 4 years ago
parent 633466b901
commit 2f9f4dbb3a
Signed by: flanchan
GPG Key ID: 284488987C31F630

2
Cargo.lock generated

@ -639,7 +639,7 @@ dependencies = [
[[package]]
name = "markov"
version = "0.5.4"
version = "0.6.0"
dependencies = [
"async-compression",
"cfg-if 1.0.0",

@ -1,6 +1,6 @@
[package]
name = "markov"
version = "0.6"
version = "0.6.0"
description = "Generate string of text from Markov chain fed by stdin"
authors = ["Avril <flanchan@cumallover.me>"]
edition = "2018"

@ -1 +0,0 @@
avril@eientei.880:1602382403

@ -119,12 +119,12 @@ impl Filter
self.len() == 0
}
pub fn iter(&self) -> impl Iterator<Item=char> + '_
pub fn iter(&self) -> FilterKeyIter<'_> //impl Iterator<Item=char> + '_
{
self.0.iter()
.copied()
.map(|(x, _)| x)
//FilterKeyIter(self.0.iter(), self.0.len())
//self.0.iter()
// .copied()
// .map(|(x, _)| x)
FilterKeyIter(self.0.iter(), self.0.len())
}
/// Should this character be filtered?

Loading…
Cancel
Save