tag:blogger.com,1999:blog-2851998125830919828.post3521016724463858390..comments2023-05-30T14:02:12.851+01:00Comments on Figment Engine: Alliteration algorithmfehttp://www.blogger.com/profile/10497505263673073471noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-2851998125830919828.post-87090420059789646442008-10-13T21:21:00.000+01:002008-10-13T21:21:00.000+01:00@Inigo - nice, though I guess that using you could...@Inigo - nice, though I guess that using you could just do it using a Regex with captures..<BR/><BR/>Linq+RegExp - who needs anything else ;-0fehttps://www.blogger.com/profile/10497505263673073471noreply@blogger.comtag:blogger.com,1999:blog-2851998125830919828.post-5783457572574728242008-10-13T17:59:00.000+01:002008-10-13T17:59:00.000+01:00Surely an opportunity for some Linq...public bool ...Surely an opportunity for some Linq...<BR/><BR/>public bool IsAlliterative(String s)<BR/>{<BR/> return new Regex("[^\\w+]").Split(s).Where(a => a.Length > 0).All(a => a.ToLower().StartsWith("" + Char.ToLower(s.First())));<BR/>}Inigohttps://www.blogger.com/profile/07678877142842950905noreply@blogger.com