The Book of F# - Dave Fancher

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 พ.ย. 2024

ความคิดเห็น • 10

  • @boom_shankar
    @boom_shankar 7 ปีที่แล้ว +3

    thank you, good sir, for this great introduction to f#. exciting times ahead!

  • @PaulSebastianM
    @PaulSebastianM 2 ปีที่แล้ว

    s.Split(' ') returns an array, let's call it a;
    |> pipes a to Seq.fold as its first argument
    Seq.fold takes an input collection, a folding function (in this case solve, its signature is on line 2), and an initial value for the accumulator (items), which is the empty array []
    Seq.fold gets called with arguments: a solve []
    Seq.fold returns the the accumulator, which is an array, and calling Head on it gets the first value, the number that results from applying the operation, because that's all we store in it.
    Just for people that might be struggling.

  • @chimpionboy
    @chimpionboy 6 ปีที่แล้ว +1

    I am definitely going to start practice some F# seriously.

    • @TheUArabej
      @TheUArabej 5 ปีที่แล้ว +4

      How did it go? A year had passed ;)

    • @pofesen
      @pofesen 4 ปีที่แล้ว

      How did it go? Two years had passed ;)

    • @nhijaz
      @nhijaz 2 ปีที่แล้ว +1

      How did it go? 4 years have passed ;)

    • @janmsavage
      @janmsavage 2 ปีที่แล้ว +1

      guys leave the poor guy alone. :)

    • @luisz0339
      @luisz0339 ปีที่แล้ว

      How did it go? 5 years had passed ;)

  • @focl2003
    @focl2003 7 ปีที่แล้ว

    This is great.