Skip to content

Latest commit

 

History

History
96 lines (65 loc) · 1.32 KB

strings.md

File metadata and controls

96 lines (65 loc) · 1.32 KB
title
Strings

import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';

concat

<Tabs defaultValue="signature" values={[ {label: 'Signature', value: 'signature'}, {label: 'Example', value: 'example'}, ]}

(b String) (a String) | concat | (a+b String)
"foo" "bar" concat => "foobar"

Concatenates two strings and puts the result onto the stack.

concat-all

<Tabs defaultValue="signature" values={[ {label: 'Signature', value: 'signature'}, {label: 'Example', value: 'example'}, ]}

<mark> (as ...String) | concat-all | (a String)
"a" "b" "c" "d" concat-all => "abcd"

Concatenates all the strings on the stack down to the mark andputs the result on the stack.

trim

<Tabs defaultValue="signature" values={[ {label: 'Signature', value: 'signature'}, {label: 'Example', value: 'example'}, ]}

(x String) | trim | (y String)
" foo " trim => "foo"

Removes trailing and leading whitespace around a string.