Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 556 Bytes

File metadata and controls

37 lines (25 loc) · 556 Bytes
name prepend
menu string

string/prepend

prepend :: String -> String -> String

Prepends a String to another String

Example

import { log, pipe, run, prepend } from 'mojiscript';

const state = 'Script'

const main = pipe ([
  prepend ('Moji'),
  log
])

run ({ state, main })
// => "MojiScript"

Parameters

Name Type Description
pre String String to be prepend to.
post String String to prepend to other String

Returns

Prepended String.