News for hackers. Stuff that matters.
Re:Using Python generators for real work [pdf] by xtacy on Sunday January 23, 2011 @06:29PM (#2133650)
Mathematica has a nice syntax for function application, mapping over lists, etc. It's also possible to define such operators in Haskell, which has the added advantage of type-safety.

  f @ {1,2,3} == f[{1,2,3}]
  f /@ list == map(f, list)
  f @@ {1,2,3} == f[1,2,3]

  (#1 * 2) /@ {1,2,3} == {2,4,6}
etc.
Re:Using Python generators for real work [pdf] by ot on Sunday January 23, 2011 @06:42PM (#2133682)
That's like F# operator |>

    f |> g == g(f)
    [1 .. 3] |> Seq.map (fun x -> x * x) |> Seq.sum |> printfn "%A" // prints 14