こんにちは!
アメリカ人のリックです。よろしくお願いします。
すみすみません、予約ができるかお聞きしてもいいですか?
私たちは三人です。別々に予約したいんです。迷惑をかけてすみません。
三人で:
#!/usr/bin/env stack | |
-- stack --resolver lts-8.12 script | |
{-# LANGUAGE OverloadedStrings #-} | |
{-# LANGUAGE NoImplicitPrelude #-} | |
{-# LANGUAGE DeriveFunctor #-} | |
{-# LANGUAGE TypeFamilies #-} | |
import qualified Data.Text as T | |
import ClassyPrelude | |
import Data.Functor.Foldable |
Error parsing /Users/rewinfrey/code/python/tensorflow/tensorflow/compiler/tests/binary_ops_test.py (ERROR [44, 38] - [44, 44]) | |
Error parsing /Users/rewinfrey/code/python/tensorflow/tensorflow/compiler/tests/clustering_test.py (ERROR [46, 42] - [46, 48]) | |
Error parsing /Users/rewinfrey/code/python/tensorflow/tensorflow/compiler/tests/conv2d_test.py (ERROR [63, 54] - [63, 55]) | |
Error parsing /Users/rewinfrey/code/python/tensorflow/tensorflow/compiler/tests/conv3d_test.py (ERROR [63, 26] - [63, 27]) | |
Error parsing /Users/rewinfrey/code/python/tensorflow/tensorflow/compiler/tests/dynamic_stitch_test.py (ERROR [49, 49] - [49, 50]) | |
Error parsing /Users/rewinfrey/code/python/tensorflow/tensorflow/compiler/tests/function_test.py (ERROR [53, 42] - [53, 48]) | |
Error parsing /Users/rewinfrey/code/python/tensorflow/tensorflow/compiler/tests/jit_test.py (ERROR [47, 27] - [47, 66]) | |
Error parsing /Users/rewinfrey/code/python/tensorflow/tensorflow/compiler/tests/lrn_ops_test.py (ERROR [91, 22] - [91, 29]) | |
Error parsing /Users/rew |
withAsyncServer $ \(asyncContext, _) -> do | |
echoResults <- asyncContext $ \ asyncServer -> do | |
sendToServer "data" | |
asyncRecv asyncServer | |
echoResults `shouldBe` "data" | |
asyncRecv :: Async a -> IO a | |
asyncRecv = wait | |
withAsyncServer :: (((Async String -> IO String) -> IO String, Socket) -> IO c) -> IO c |
{-# ConstraintKinds #-} | |
module TypeClassConstraintAsTypeAlias where | |
type Showable a = (Show a) | |
example :: Showable a => a -> a | |
example a = undefined |
こんにちは!
アメリカ人のリックです。よろしくお願いします。
すみすみません、予約ができるかお聞きしてもいいですか?
私たちは三人です。別々に予約したいんです。迷惑をかけてすみません。
三人で:
[[[ [] ], [], []], [node5, node6]]
Binary Tree
"root"
/ \
node1 node2
/ \ / \
module Basics where | |
{- | |
1. What is Semigroup? Define the type class. | |
2. What is Monoid? Define the type class. | |
3. What is Functor? Define the type class. | |
4. What is Applicative? Define the type class. |
module TilesParametricPolymorphism where | |
class Tile a where | |
over :: a -> a | |
instance Tile (Dora Character) where | |
over MultiSet (Dora Character) -> undefined | |
instance Tile (Dora Circle) where | |
over MultiSet (Dora Circle) -> undefined |
module Example | |
def something | |
puts "in example" | |
super | |
end | |
end | |
class Test | |
prepend Example | |
def something |
@actual_numbers = [4, 8, 19, 27, 34, 10] | |
def powerball_match?(numbers) | |
@actual_numbers.last == numbers.last | |
end | |
def white_ball_matches?(numbers, minimum_match_count) | |
numbers.select { |number| @actual_numbers[0..-2].include? number }.count >= minimum_match_count | |
end |