99 個 Elm 難題/問題 46
外觀
為邏輯運算定義函式。46.a) and’ 46.b) or’ 46.c) nand 44.d) nor’ 44.e) xor’ 44.f) impl’ 44.g) equ’(用於邏輯等價)44.h) 編寫具有兩個變數的給定邏輯表示式的真值表。
# # # 這是一個存根 # # #
Example in Elm:
import Html exposing (text)
import List
f : Int -> Int
-- your implementation goes here
main = text (toString (f 0))
結果
4