Skip to content

Commit ed58f7e

Browse files
char_stream -> chars_to_stream
mthom#2968 (comment)
1 parent c776def commit ed58f7e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/lib/charsio.pl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -416,19 +416,19 @@
416416
must_be(chars, Chars),
417417
maplist(put_char(Stream), Chars).
418418

419-
%% char_stream(-Stream)
419+
%% chars_to_stream(-Stream)
420420
% Stream is a character stream.
421421

422-
char_stream(Stream) :-
422+
char_to_stream(Stream) :-
423423
'$memory_stream'(Stream).
424424

425-
%% char_stream(+Chars, -Stream) :-
425+
%% chars_to_stream(+Chars, -Stream) :-
426426
% Convert a list of characters into a character stream.
427427

428-
char_stream(Chars, Stream) :-
429-
char_stream(Chars, Stream, []).
428+
chars_to_stream(Chars, Stream) :-
429+
chars_to_stream(Chars, Stream, []).
430430

431-
%% char_stream(+Chars, -Stream, +Options) :-
431+
%% chars_to_stream(+Chars, -Stream, +Options) :-
432432
% Creates a character stream from a list of characters.
433433
%
434434
% Chars is the list of characters to write to the stream.
@@ -438,11 +438,11 @@
438438
% Example:
439439
%
440440
% ```
441-
% ?- char_stream("hello", Stream, []).
441+
% ?- chars_to_stream("hello", Stream, []).
442442
% Stream = stream('$memory_stream'(2048)).
443443
% ```
444444

445-
char_stream(Chars, Stream, _) :-
445+
chars_to_stream(Chars, Stream, _) :-
446446
must_be(chars, Chars),
447447
'$memory_stream'(Stream),
448448
put_chars(Stream, Chars).

0 commit comments

Comments
 (0)