Comment detail

n日後を返す関数を返す関数 (Nested Flatten)

Factor としては : n_days_later +day ; の方がふさわしいようにも思いますが。

1
2
3
4
5
6
7
USING: kernel calendar prettyprint ;

: n_days_later ( n -- quot )
    [ +day ] curry ;

! example
now dup . 5 n_days_later call .

Index

Feed

Other

Link

Pathtraq

loading...