-
Notifications
You must be signed in to change notification settings - Fork 1
/
first-name.fs
34 lines (26 loc) · 868 Bytes
/
first-name.fs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
\ galope/first-name.fs
\ This file is part of Galope
\ http:https://programandala.net/en.program.galope.html
\ Author: Marcos Cruz (programandala.net), 2015, 2017.
\ ==============================================================
require ./slash-name.fs
: first-name ( ca1 len1 -- ca2 len2 ) /name nip - ;
\ doc{
\
\ first-name ( ca1 len1 -- ca2 len2 )
\
\ Get the first name _ca2 len2_ from the string _ca1 len1_. A name
\ is a substring separated by spaces.
\
\ See: `/first-name`, `/name`.
\
\ }doc
\ ==============================================================
\ Change log
\ 2015-10-16: Added to the library, taken from fsb2
\ (http:https://programandala.net/en.program.fsb2.html) and Solo Forth
\ (http:https://programandala.net/en.program.solo_forth.html).
\
\ 2017-07-15: Update layout. Improve documentation.
\
\ 2017-09-08: Update documentation.