Jonkman Microblog
  • Login
Show Navigation
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. Kat MCP(NT4) MCSE(Win2K) (kat@mastodon.social)'s status on Thursday, 07-Feb-2019 06:25:48 EST Kat MCP(NT4) MCSE(Win2K) Kat MCP(NT4) MCSE(Win2K)

    There should be a way of using fold to wrap up partial application of a function. So you can apply a function of multiple variables to a LIST of values.

    :t fromGregorian:: Integer -> Int -> Int -> Day
    fromGregorian 2019 02 08 = 2019-02-08

    someFoldMagic fromGregorian [2019, 02, 08] ...

    In conversation Thursday, 07-Feb-2019 06:25:48 EST from mastodon.social permalink
    1. Kat MCP(NT4) MCSE(Win2K) (kat@mastodon.social)'s status on Thursday, 07-Feb-2019 06:26:31 EST Kat MCP(NT4) MCSE(Win2K) Kat MCP(NT4) MCSE(Win2K)
      in reply to

      hmm oh noes!! not the infinite type 😠

      In conversation Thursday, 07-Feb-2019 06:26:31 EST from mastodon.social permalink
      1. Kat MCP(NT4) MCSE(Win2K) (kat@mastodon.social)'s status on Thursday, 07-Feb-2019 16:07:53 EST Kat MCP(NT4) MCSE(Win2K) Kat MCP(NT4) MCSE(Win2K)
        in reply to

        Turns out someone asked this question a few years ago, and there wasn't any awesome answers then https://mail.haskell.org/pipermail/haskell-cafe/2009-October/067254.html #haskell

        In conversation Thursday, 07-Feb-2019 16:07:53 EST from mastodon.social permalink
        1. Kat MCP(NT4) MCSE(Win2K) (kat@mastodon.social)'s status on Thursday, 07-Feb-2019 16:45:04 EST Kat MCP(NT4) MCSE(Win2K) Kat MCP(NT4) MCSE(Win2K)
          in reply to

          Also, I have decided it's a silly idea because elements of a list all have to have the same type.

          and also in Haskell lists are infinite, so that is probably causing the interpreter to barf working out the intermediate types.

          Maybe it would work in something with a Vect n type

          In conversation Thursday, 07-Feb-2019 16:45:04 EST from mastodon.social permalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

Jonkman Microblog is a social network, courtesy of SOBAC Microcomputer Services. It runs on GNU social, version 1.2.0-beta5, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Jonkman Microblog content and data are available under the Creative Commons Attribution 3.0 license.

Switch to desktop site layout.