Skip to content

Instantly share code, notes, and snippets.

@arekolek
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arekolek/9770501 to your computer and use it in GitHub Desktop.
Save arekolek/9770501 to your computer and use it in GitHub Desktop.
abstype and andalso as case do datatype else eqtype end exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype while
use
:: nil null length hd tl rev concat revAppend app map foldl foldr
size substring concat str implode explode
Array.maxLen Array.array Array.fromList Array.tabulate Array.length Array.sub Array.update Array.vector Array.copy Array.copyVec Array.appi Array.app Array.modifyi Array.modify Array.foldli Array.foldri Array.foldl Array.foldr Array.findi Array.find Array.exists Array.all Array.collate
Date.Mon Date.Tue Date.Wed Date.Thu Date.Fri Date.Sat Date.Sun Date.Jan Date.Feb Date.Mar Date.Apr Date.May Date.Jun Date.Jul Date.Aug Date.Sep Date.Oct Date.Nov Date.Dec Date.date Date.Date Date.year Date.month Date.day Date.hour Date.minute Date.second Date.weekDay Date.yearDay Date.offset Date.isDst Date.localOffset Date.fromTimeLocal Date.fromTimeUniv Date.toTime Date.compare Date.fmt Date.toString Date.scan Date.fromString
List.Empty List.null List.length List.@ List.hd List.tl List.last List.getItem List.nth List.take List.drop List.rev List.concat List.revAppend List.app List.map List.mapPartial List.find List.filter List.partition List.foldl List.foldr List.exists List.all List.tabulate List.collate
Random.rand Random.toString Random.fromString Random.randInt Random.randNat Random.randReal Random.randRange
String.maxSize String.size String.sub String.extract String.substring String.^ String.concat String.concatWith String.str String.implode String.explode String.map String.translate String.tokens String.fields String.isPrefix String.isSubstring String.isSuffix String.compare String.collate String.< String.<= String.> String.>= String.toString String.scan String.fromString String.toCString String.fromCString
Time.Time Time.zeroTime Time.fromReal Time.toReal Time.toSeconds Time.toMilliseconds Time.toMicroseconds Time.toNanoseconds Time.fromSeconds Time.fromMilliseconds Time.fromMicroseconds Time.fromNanoseconds Time.+ Time.- Time.compare Time.< Time.<= Time.> Time.>= Time.now Time.fmt Time.toString Time.scan Time.fromString
Vector.maxLen Vector.fromList Vector.tabulate Vector.length Vector.sub Vector.update Vector.concat Vector.appi Vector.app Vector.mapi Vector.map Vector.foldli Vector.foldri Vector.foldl Vector.foldr Vector.findi Vector.find Vector.exists Vector.all Vector.collate
@arekolek
Copy link
Author

What's this

Completions file for use with sml and rlwrap. It is not exhaustive, but I plan to add keywords as I need them.

Usage

Create a subdirectory in your home directory and download this file.

mkdir ~/.rlwrap
curl https://gist.githubusercontent.com/arekolek/9770501/raw/33c61e220fb27a0980b9aae4b247772900489e65/sml_completions > ~/.rlwrap/sml_completions

Add the following two lines to your .bashrc, .zshrc or similar to automatically enable rlwrap with completion (symbols and files) when you type sml in your console.

export RLWRAP_HOME="$HOME/.rlwrap"
alias sml='rlwrap -c sml'

References

  1. http://ithaca.arpinum.org/2013/01/20/rlwrap.html
  2. http://www.standardml.org/Basis/overview.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment