[Haskell-beginners] What is "~" ?
rk at trie.org
Thu Apr 2 19:21:04 EDT 2009
~ signifies a lazy pattern.
for more details.
What kind of art do you like?
On Thu, Apr 2, 2009 at 7:18 PM, TG <cowscanfly at airpost.net> wrote:
> Looking at the definition of "partition", it calls
> select :: (a -> Bool) -> a -> ([a], [a]) -> ([a], [a])
> select p x ~(ts,fs) | p x = (x:ts,fs)
> | otherwise = (ts, x:fs)
> what does the "~" do?
> Can't seem to find it in the documentation, or see a difference in
> output without it.
> Thank you.
> cowscanfly at airpost.net
> http://www.fastmail.fm - Email service worth paying for. Try it for free
> Beginners mailing list
> Beginners at haskell.org
More information about the Beginners