翻訳と辞書
Words near each other
・ hdfl
・ hdl
・ hdlc
・ hdm
・ hdsl
・ hdtv
・ hdx
・ head disk assembly
・ head normal form
・ head normalisation theorem
head-strict
・ header
・ heads down
・ heap
・ heartbeat
・ heat sink
・ heat slug
・ heatseeker
・ heavy metal
・ heavy wizardry


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

head-strict : FOLDOC
head-strict
A head-strict function will not necessarily evaluate every cons cell of its (list) argument, but whenever it does evaluate a cons cell it will also evaluate the element in the head of that cell. An example of a head-strict function is
beforeZero :: [Int] -> [Int]
beforeZero [] = []
beforeZero (0:xs) = []
beforeZero (x:xs) = x : beforeZero xs

which returns a list up to the first zero.
This pattern of evaluation is important because it is common in functions which operate on a list of inputs.
See also tail-strict, hyperstrict.
(1995-05-11)



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.