Changeset 38978 in project


Ignore:
Timestamp:
08/31/20 16:49:01 (4 weeks ago)
Author:
Kon Lovett
Message:

rel 4.2.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/5/message-digest-utils

    r38804 r38978  
    203203<procedure>(message-digest-update-procedure DIGEST THUNK)</procedure>
    204204
    205 Update the {{DIGEST}} with a {{THUNK}} until it returns {{#f}}.
    206 
    207 {{THUNK}} is a {{(-> byte-source)}}.
     205Update the {{DIGEST}} with the {{THUNK}} result, until it returns {{#f}}.
     206
     207; {{THUNK}} : {{(-> (or BYTE-SOURCE false))}}
     208; {{BYTE-SOURCE}} : {{(or string blob srfi-4-vector )}}
     209
     210<enscript highlight=scheme>
     211;simple example (from test suite)
     212(import message-digest-item)
     213(: just-once (-> (or string false)))
     214(define just-once
     215  ;override most specific inferred type, true, w/ what is needed, boolean
     216  (let ((flag (the boolean #t)))
     217    (lambda ()
     218      (and flag (begin (set! flag #f) "ab cd")))))
     219</enscript>
    208220
    209221==== message-digest-update-port
     
    570582== Version history
    571583
     584; 4.2.0 : Add {{message-digest.types.scm}}.
    572585; 4.1.2 : .
    573586; 4.0.0 : CHICKEN 5 release.
     
    576589== License
    577590
    578   Copyright (C) 2018 Kon Lovett.  All rights reserved.
     591  Copyright (C) 2006-2020 Kon Lovett.  All rights reserved.
    579592
    580593  Permission is hereby granted, free of charge, to any person obtaining a
Note: See TracChangeset for help on using the changeset viewer.